From 02c219d40e567cc42576648fc1b459078dc95897 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 16 Oct 2014 00:33:56 +0200 Subject: [PATCH] PATH_INFO is delivered URL encoded on newer apache 2.4 --- website/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/search.php b/website/search.php index 872d9801..a9e20d4e 100755 --- a/website/search.php +++ b/website/search.php @@ -87,7 +87,7 @@ } else { if (!(isset($_GET['q']) && $_GET['q']) && isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'][0] == '/') { - $sQuery = substr($_SERVER['PATH_INFO'], 1); + $sQuery = substr(rawurldecode($_SERVER['PATH_INFO']), 1); // reverse order of '/' separated string $aPhrases = explode('/', $sQuery); -- 2.39.5