From: Brian Quinion Date: Mon, 17 Dec 2012 00:24:58 +0000 (+0000) Subject: Change access control to implement more of CORS. Change so OPTIONS requests don... X-Git-Tag: v2.2.0~154 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/0dd10c3fff9896ca23b884a7ec7a97002065d083 Change access control to implement more of CORS. Change so OPTIONS requests don't do an actual search/reverse request --- diff --git a/lib/init-website.php b/lib/init-website.php index 8603e309..94dba6f4 100644 --- a/lib/init-website.php +++ b/lib/init-website.php @@ -1,6 +1,14 @@ ".htmlspecialchars($aPlace['langaddress']).""; - if ($bShowAddressDetails) { + if ($bShowAddressDetails) { echo ""; foreach($aAddress as $sKey => $sValue) { @@ -39,7 +38,7 @@ echo ""; } echo ""; - } + } } - + echo ""; diff --git a/lib/template/search-json.php b/lib/template/search-json.php index 45272d35..4b3b279d 100644 --- a/lib/template/search-json.php +++ b/lib/template/search-json.php @@ -1,4 +1,6 @@ $aPointDetails) { diff --git a/lib/template/search-xml.php b/lib/template/search-xml.php index fa6b14a3..aa029d2b 100644 --- a/lib/template/search-xml.php +++ b/lib/template/search-xml.php @@ -1,6 +1,5 @@ getRow($sSQL); +//var_dump($sSQL, $aPlace); exit; if ($bShowAddressDetails) {