]> git.andy128k.dev Git - ipf.git/commitdiff
fix cli-server. strip get-parameters
authorAndrey Kutejko <andy128k@gmail.com>
Mon, 4 Feb 2013 19:40:49 +0000 (21:40 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Mon, 4 Feb 2013 19:41:38 +0000 (21:41 +0200)
ipf/project.php

index 836fdee5e7e3cb6f92901dbdcdf25db0f297070b..128ac600cfc10946d44889e258cd51f970ae1ed8 100644 (file)
@@ -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;
         }