From eee6ed48f0588f1aa0ac4f30fd55756a7a7f0824 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 10 Apr 2013 20:33:10 +0200 Subject: [PATCH] use correct viewbox variable in search XML --- lib/template/search-xml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.39.5