From: Sarah Hoffmann Date: Wed, 30 May 2012 20:19:49 +0000 (+0200) Subject: silently remove leading/trailing spaces X-Git-Tag: deploy~692 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/793a4a0465d90e9112740c5c6d64ac36967cfbd1?ds=inline;hp=--cc silently remove leading/trailing spaces --- 793a4a0465d90e9112740c5c6d64ac36967cfbd1 diff --git a/utils/specialphrases.php b/utils/specialphrases.php index c31ac36f..550f0c90 100755 --- a/utils/specialphrases.php +++ b/utils/specialphrases.php @@ -41,9 +41,9 @@ { foreach($aMatches as $aMatch) { - $sLabel = $aMatch[1]; - $sClass = $aMatch[2]; - $sType = $aMatch[3]; + $sLabel = trim($aMatch[1]); + $sClass = trim($aMatch[2]); + $sType = trim($aMatch[3]); # hack around a bug where building=yes was imported with # quotes into the wiki $sType = preg_replace('/"/', '', $sType);