We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b70836 commit ede0692Copy full SHA for ede0692
.router.php
@@ -3,10 +3,12 @@
3
4
$filename = $_SERVER["PATH_INFO"] ?? $_SERVER["SCRIPT_NAME"];
5
6
-if (file_exists($_SERVER["DOCUMENT_ROOT"] . $filename)) {
7
- /* This could be an image or whatever, so don't try to compress it */
8
- ini_set("zlib.output_compression", 0);
9
- return false;
+if (!file_exists($_SERVER["DOCUMENT_ROOT"] . $filename)) {
+ require_once __DIR__ . '/error.php';
+
+ return;
10
}
11
12
-include_once "error.php";
+/* This could be an image or whatever, so don't try to compress it */
13
+ini_set("zlib.output_compression", 0);
14
+return null;
0 commit comments