From: Sarah Hoffmann Date: Wed, 15 Oct 2014 22:33:56 +0000 (+0200) Subject: PATH_INFO is delivered URL encoded on newer apache 2.4 X-Git-Tag: v2.4.0~78 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/02c219d40e567cc42576648fc1b459078dc95897 PATH_INFO is delivered URL encoded on newer apache 2.4 --- 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);