X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/890d415e1ffd997d11ed35dee04cb01b94ca133f..6d4fbc9d320045876b25506dd2685da27613324e:/website/search.php diff --git a/website/search.php b/website/search.php index 26c10122..55705656 100644 --- a/website/search.php +++ b/website/search.php @@ -50,6 +50,7 @@ $oGeocode->setQueryFromParams($oParams); if (!$oGeocode->getQueryString() && isset($_SERVER['PATH_INFO']) + && strlen($_SERVER['PATH_INFO']) > 0 && $_SERVER['PATH_INFO'][0] == '/' ) { $sQuery = substr(rawurldecode($_SERVER['PATH_INFO']), 1);