]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
reorganise table creation
[nominatim.git] / website / search.php
index 872d9801761a58664fa25b7221a47ceb9aa2f677..a9e20d4eb47e564fa4889b42312869ecd8b3462e 100755 (executable)
@@ -87,7 +87,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);