Job page should work
[platal.git] / include / geoloc.inc.php
index de0d4d4..a1939b8 100644 (file)
@@ -225,7 +225,7 @@ function compare_addresses_text($a, $b)
         return false;
     }
     foreach ($la as $i=>$l) {
-        if (levenshtein($l, $lb[$i]) > 3) {
+        if (levenshtein(trim($l), trim($lb[$i])) > 3) {
             return false;
         }
     }