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 2999f52 commit eee2e1cCopy full SHA for eee2e1c
router.php
@@ -23,12 +23,12 @@
23
substr(basename($filePath), 0, 1) != '.'
24
) {
25
if (strtolower(substr($filePath, -4)) == '.php') {
26
- include DIRECTORY_SEPARATOR . $filePath;
+ include $filePath;
27
} else {
28
if (strtolower(substr($filePath, -3)) == '.js') {
29
Header('Content-Type: text/javascript');
30
}
31
- readfile (DIRECTORY_SEPARATOR . $filePath);
+ readfile ($filePath);
32
33
34
// disallowed file
0 commit comments