]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / website / search.php
index a3a926fd951f440c343857884bed77937b0bb6e5..cd522c5771c0fdd536b097d59aeec4b445881e22 100755 (executable)
@@ -89,7 +89,7 @@
        } else {
         if (!(isset($_GET['q']) && $_GET['q']) && isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'][0] == '/')
         {
        } 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);
 
             // reverse order of '/' separated string
             $aPhrases = explode('/', $sQuery);