fixing bug in jsonld processing with certain URL paths

This commit is contained in:
El RIDO 2018-12-17 19:42:26 +01:00
parent 2303c81ce0
commit cde96d8f24
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92

View file

@ -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)
) : '/';
}
/**