Skip to content

Commit eee2e1c

Browse files
committed
Fix #9 (thx @jmashore)
1 parent 2999f52 commit eee2e1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
substr(basename($filePath), 0, 1) != '.'
2424
) {
2525
if (strtolower(substr($filePath, -4)) == '.php') {
26-
include DIRECTORY_SEPARATOR . $filePath;
26+
include $filePath;
2727
} else {
2828
if (strtolower(substr($filePath, -3)) == '.js') {
2929
Header('Content-Type: text/javascript');
3030
}
31-
readfile (DIRECTORY_SEPARATOR . $filePath);
31+
readfile ($filePath);
3232
}
3333
} else {
3434
// disallowed file

0 commit comments

Comments
 (0)