mirror of
https://github.com/netzmacht/contao-leaflet-geocode-widget.git
synced 2025-12-01 13:13:39 +01:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3e034f161 |
@@ -65,6 +65,14 @@ class GeocodeWidget extends \Widget
|
||||
return $value;
|
||||
}
|
||||
|
||||
if (is_array($value)) {
|
||||
foreach ($value as $key => $val) {
|
||||
$value[$key] = $this->validator($val);
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
// See: http://stackoverflow.com/a/18690202
|
||||
if (!preg_match(
|
||||
'#^[-+]?([1-8]?\d(\.\d+)?|90(\.0+)?),[-+]?(180(\.0+)?|((1[0-7]\d)|([1-9]?\d))(\.\d+)?)(,[-+]?\d+)?$#',
|
||||
|
||||
Reference in New Issue
Block a user