]> git.openstreetmap.org Git - nominatim.git/commitdiff
silently remove leading/trailing spaces
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 30 May 2012 20:19:49 +0000 (22:19 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 30 May 2012 20:19:49 +0000 (22:19 +0200)
utils/specialphrases.php

index 28d550106f7ff3a0d890928b714d6507bebcdabd..309c5253325693a5c56e499ed00e17952897992b 100755 (executable)
@@ -42,9 +42,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('/&quot;/', '', $sType);