mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixed sanitizing of google map information (#5738)
This commit is contained in:
committed by
Neil Lathwood
parent
cb3700b69d
commit
76c91f8486
@ -489,7 +489,7 @@ function location_to_latlng($device)
|
||||
$device_location = $device['location'];
|
||||
if (!empty($device_location)) {
|
||||
$new_device_location = preg_replace("/ /", "+", $device_location);
|
||||
$new_device_location = preg_replace('/[^A-Za-z0-9\-\+]/', '', $device_location); // Removes special chars.
|
||||
$new_device_location = preg_replace('/[^A-Za-z0-9\-\+]/', '', $new_device_location); // Removes special chars.
|
||||
// We have a location string for the device.
|
||||
$loc = parse_location($device_location);
|
||||
if (!is_array($loc)) {
|
||||
|
Reference in New Issue
Block a user