ソースを参照

fixing bug in jsonld processing with certain URL paths

El RIDO 7 年 前
コミット
cde96d8f24
1 ファイル変更3 行追加1 行削除
  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)
+            ) : '/';
     }
 
     /**