diff --git a/run.php b/run.php index 67a0a38461..dc69bf476c 100644 --- a/run.php +++ b/run.php @@ -2,7 +2,7 @@ // Only run this if running from php 5.4 embedded server if (php_sapi_name() == 'cli-server') { - if (preg_match('/\.(?:js|ico|gif|jpg|png|css|asc|txt|eot|woff|ttf|ttf|svg)$/', $_SERVER['REQUEST_URI'])) { + if (preg_match('/\.(?:js|ico|gif|jpg|png|css|asc|txt|eot|woff|ttf|ttf|svg)(?:\?.*)?$/', $_SERVER['REQUEST_URI'])) { // serves fronted if (preg_match('/^\/public/', $_SERVER['REQUEST_URI'])) { return false;