Skip to content

Commit

Permalink
Merge branch 'tsia-patch-1'
Browse files Browse the repository at this point in the history
Closes #34
Closes #30
  • Loading branch information
akrabat committed Jun 6, 2016
2 parents 35a29a9 + a5241ff commit 3f0f9a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
if (PHP_SAPI == 'cli-server') {
// To help the built-in PHP dev server, check if the request was actually for
// something which should probably be served as a static file
$file = __DIR__ . $_SERVER['REQUEST_URI'];
$url = parse_url($_SERVER['REQUEST_URI']);
$file = __DIR__ . $url['path'];
if (is_file($file)) {
return false;
}
Expand Down

0 comments on commit 3f0f9a3

Please sign in to comment.