X-Git-Url: https://git.openstreetmap.org/nominatim.git/blobdiff_plain/ec2d491dc8939ecf28ab84e26955bc7189618096..143fa6e6b5f9f236de18c87c725cfd884ada613e:/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);