From 55ca68671d495ad05559a010ae9884a7e2307be6 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 16 Apr 2012 15:33:13 +0200 Subject: [PATCH] allow slashes in house numbers --- website/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/search.php b/website/search.php index a049f07e..f0bcf077 100755 --- a/website/search.php +++ b/website/search.php @@ -820,7 +820,7 @@ $sPlaceIDs = join(',',$aPlaceIDs); // Now they are indexed look for a house attached to a street we found - $sHouseNumberRegex = '\\\\m'.str_replace(' ','[-, ]',$aSearch['sHouseNumber']).'\\\\M'; + $sHouseNumberRegex = '\\\\m'.str_replace(' ','[-,/ ]',$aSearch['sHouseNumber']).'\\\\M'; $sSQL = "select place_id from placex where parent_place_id in (".$sPlaceIDs.") and housenumber ~* E'".$sHouseNumberRegex."'"; if (sizeof($aExcludePlaceIDs)) { -- 2.39.5