Skip to content

Commit

Permalink
Fix base path with query params in builtin server
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernat Arlandis committed Jan 20, 2017
1 parent 7ba160b commit 6a3c488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/webroot/index.php
Expand Up @@ -82,7 +82,7 @@

// For the built-in server
if (PHP_SAPI === 'cli-server') {
if ($_SERVER['REQUEST_URI'] !== '/' && file_exists(WWW_ROOT . $_SERVER['PHP_SELF'])) {
if ($_SERVER['PHP_SELF'] !== '/' . basename(__FILE__) && file_exists(WWW_ROOT . $_SERVER['PHP_SELF'])) {
return false;
}
$_SERVER['PHP_SELF'] = '/' . basename(__FILE__);
Expand Down

0 comments on commit 6a3c488

Please sign in to comment.