X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/37bf7bc20e2e3524b00514752f55ec9a3e7e01b4..fca59b8d115a699623d49a929609224c60de37ba:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index cac95d84..54c8c7d0 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -884,16 +884,7 @@ return $iPlaceID; } - function loadStructuredAddressElement(&$aStructuredQuery, &$iMinAddressRank, &$iMaxAddressRank, $aParams, $sKey, $iNewMinAddressRank, $iNewMaxAddressRank) + function addQuotes($s) { - if (!isset($_GET[$sKey])) return false; - $sValue = trim($_GET[$sKey]); - if (!$sValue) return false; - $aStructuredQuery[$sKey] = $sValue; - if ($iMinAddressRank == 0 && $iMaxAddressRank == 30) - { - $iMinAddressRank = $iNewMinAddressRank; - $iMaxAddressRank = $iNewMaxAddressRank; - } - return true; + return "'".$s."'"; }