X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fb76671ab9fbe6e6f40b53d8cdd4250820f79a92..7ca4259866625413a2f2a9112bc3b756a3fa3299:/lib/template/search-xml.php diff --git a/lib/template/search-xml.php b/lib/template/search-xml.php index be05cb40..b78c23ea 100644 --- a/lib/template/search-xml.php +++ b/lib/template/search-xml.php @@ -9,7 +9,7 @@ echo " timestamp='".date(DATE_RFC822)."'"; echo " attribution='Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright'"; echo " querystring='".htmlspecialchars($sQuery, ENT_QUOTES)."'"; - if (isset($sViewBox)) echo " viewbox='".htmlspecialchars($sViewBox, ENT_QUOTES)."'"; + if (isset($_GET['viewbox']) && $_GET['viewbox']) echo " viewbox='".htmlspecialchars($_GET['viewbox'], ENT_QUOTES)."'"; echo " polygon='".($bShowPolygons?'true':'false')."'"; if (sizeof($aExcludePlaceIDs)) {