From: Sarah Hoffmann Date: Tue, 15 Oct 2019 07:51:20 +0000 (+0200) Subject: Merge pull request #1524 from MatthiasLohr/bugfix/uninitialized-string-offset X-Git-Tag: v3.4.0~6 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/e0836664e58554d18df14f39ebe192d5e61b9314?hp=a7b24627b5a2b546982a9eb757ab3af522bcde36 Merge pull request #1524 from MatthiasLohr/bugfix/uninitialized-string-offset Fix for #1523: Fix PHP warning --- 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);