]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
more restrictive parsing of lat/lon
[nominatim.git] / website / search.php
index 9c8c8a6ed07a2a8f65398807236f920b838763ab..aa0e870adb5c4242015b16f39f2b8af5b6fc903e 100755 (executable)
                                $sQuery = trim(str_replace($aData[0], ' ', $sQuery));
                        }
                }
-               elseif (preg_match('/(\\[|^|\\b)(-?[0-9]+[0-9.]*)[, ]+(-?[0-9]+[0-9.]*)(\\]|$|\\b)/', $sQuery, $aData))
+               elseif (preg_match('/(\\[|^|\\b)(-?[0-9]+[0-9]*\\.[0-9]+)[, ]+(-?[0-9]+[0-9]*\\.[0-9]+)(\\]|$|\\b)/', $sQuery, $aData))
                {
                        $fQueryLat = $aData[2];
                        $fQueryLon = $aData[3];