]> git.openstreetmap.org Git - nominatim.git/blobdiff - utils/specialphrases.php
silently remove leading/trailing spaces
[nominatim.git] / utils / specialphrases.php
index c31ac36f6f91b348d7c1afe04b8f3656baf3ad25..550f0c90ab4ba1f33e8e57505e6b776fc04788a1 100755 (executable)
@@ -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);