From dca1b8b5807af0660dbf1a643ad4dc20e079c38c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 27 Oct 2019 09:47:19 -0400 Subject: [PATCH] Add URL decoding to query string in App\Arguments - Slashes were stored url encoded --- src/App/Arguments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Arguments.php b/src/App/Arguments.php index e65309f6b0..bd9f3b553b 100644 --- a/src/App/Arguments.php +++ b/src/App/Arguments.php @@ -105,9 +105,9 @@ class Arguments $queryString = ''; if (!empty($server['QUERY_STRING']) && strpos($server['QUERY_STRING'], 'pagename=') === 0) { - $queryString = substr($server['QUERY_STRING'], 9); + $queryString = urldecode(substr($server['QUERY_STRING'], 9)); } elseif (!empty($server['QUERY_STRING']) && strpos($server['QUERY_STRING'], 'q=') === 0) { - $queryString = substr($server['QUERY_STRING'], 2); + $queryString = urldecode(substr($server['QUERY_STRING'], 2)); } // eventually strip ZRL -- 2.39.5