X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/12c1deeb8a313873af7c33c878f48a819305b483..f1c4615c32532cdb03845c017f660fa5c5a06331:/lib/template/search-xml.php?ds=inline diff --git a/lib/template/search-xml.php b/lib/template/search-xml.php index b78c23ea..693330bb 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($_GET['viewbox']) && $_GET['viewbox']) echo " viewbox='".htmlspecialchars($_GET['viewbox'], ENT_QUOTES)."'"; + if ($sViewBox) echo " viewbox='".htmlspecialchars($sViewBox, ENT_QUOTES)."'"; echo " polygon='".($bShowPolygons?'true':'false')."'"; if (sizeof($aExcludePlaceIDs)) { @@ -80,7 +80,7 @@ echo " display_name='".htmlspecialchars($aResult['name'], ENT_QUOTES)."'"; echo " class='".htmlspecialchars($aResult['class'])."'"; - echo " type='".htmlspecialchars($aResult['type'])."'"; + echo " type='".htmlspecialchars($aResult['type'], ENT_QUOTES)."'"; echo " importance='".htmlspecialchars($aResult['importance'])."'"; if (isset($aResult['icon']) && $aResult['icon']) {