[FrameworkBundle] Fix built-in server when using query params in paths
$_SERVER['REQUEST_URI'] will contain the query params so is_file will fail. Change it to use $_SERVER['SCRIPT_NAME'] instead which only contains the relative filename of the the script.
This commit is contained in:
parent
0d4b02e452
commit
eb26e89625
@ -21,7 +21,7 @@
|
|||||||
* @author: Albert Jessurum <ajessu@gmail.com>
|
* @author: Albert Jessurum <ajessu@gmail.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (is_file($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $_SERVER['REQUEST_URI'])) {
|
if (is_file($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $_SERVER['SCRIPT_NAME'])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user