From cde96d8f24262fa04bfdf2e2f7ae7140f841b683 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Mon, 17 Dec 2018 19:42:26 +0100 Subject: [PATCH] fixing bug in jsonld processing with certain URL paths --- lib/Request.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Request.php b/lib/Request.php index c9dd6c0d..65549a90 100644 --- a/lib/Request.php +++ b/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) + ) : '/'; } /**