From 32f6ddf6dbd6972610e244d6a603aa16f62321ac Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 4 Oct 2017 20:15:06 +0200 Subject: [PATCH 1/1] only allow either postcode or special search Fixes #804. --- lib/Geocode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Geocode.php b/lib/Geocode.php index aef2d384..a7558bea 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -785,7 +785,7 @@ class Geocode // require a normalized exact match of the term // if we have the normalizer version of the query // available - if ($aSearch['sClass'] === '' + if ($aSearch['sOperator'] === '' && ($sNormQuery === null || !($aSearchTerm['word'] && strpos($sNormQuery, $aSearchTerm['word']) === false))) { $aSearch['sClass'] = $aSearchTerm['class']; $aSearch['sType'] = $aSearchTerm['type']; -- 2.39.5