From: Andrey Kutejko Date: Mon, 4 Feb 2013 19:40:49 +0000 (+0200) Subject: fix cli-server. strip get-parameters X-Git-Tag: 0.5~309 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=8f3b0c567968f925f1eaf0be6cc220514a5ae2d4;p=ipf.git fix cli-server. strip get-parameters --- diff --git a/ipf/project.php b/ipf/project.php index 836fdee..128ac60 100644 --- a/ipf/project.php +++ b/ipf/project.php @@ -130,7 +130,8 @@ final class IPF_Project{ return true; } if (php_sapi_name() == 'cli-server') { - $path = $_SERVER['DOCUMENT_ROOT'] . $_SERVER["REQUEST_URI"]; + $parts = explode('?', $_SERVER['REQUEST_URI'], 2); + $path = $_SERVER['DOCUMENT_ROOT'] . $parts[0]; if (is_file($path)) return false; }