Explorar el Código

fixing bug in jsonld processing with certain URL paths

El RIDO hace 7 años
padre
commit
cde96d8f24
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      lib/Request.php

+ 3 - 1
lib/Request.php

@@ -154,7 +154,9 @@ class Request
     public function getRequestUri()
     {
         return array_key_exists('REQUEST_URI', $_SERVER) ?
-            htmlspecialchars($_SERVER['REQUEST_URI']) : '/';
+            htmlspecialchars(
+                parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
+            ) : '/';
     }
 
     /**