From: Matthias Lohr Date: Tue, 15 Oct 2019 06:46:19 +0000 (+0200) Subject: Fixed PHP warning from #1523 X-Git-Tag: v3.4.0~6^2 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/8d7499342f351db89c3c9f988cc5f2c47b3c7688 Fixed PHP warning from #1523 Signed-off-by: Matthias Lohr --- 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);