summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
fe1e53e)
Require a decimal point in both numbers to avoid cases like
https://trac.openstreetmap.org/ticket/4884
$sQuery = trim(str_replace($aData[0], ' ', $sQuery));
}
}
$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];
{
$fQueryLat = $aData[2];
$fQueryLon = $aData[3];