Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
irrelevant
Description
If a device location contains a "/", the link on the dot in the SVG on the map will contain a non-escaped "/" and hence observium will return an error instead of the list of devices at the location.
html/pages/front/globe.php
35 if ($down > 0)
{ 36 $locations_down[] = "['".$location."', 100, '".implode(", ", $devices_down)."']"; 37 }else
{ 38 $locations_up[] = "['".$location."', 0, '".implode(", ", $devices_down)."']"; 39 }I suppose $location should be escaped.
Attachments
Activity
Workflow | Original: classic default workflow [ 11204 ] | New: Observium workflow [ 13828 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
The URI is now properly escaped, but putting an escaped / in the URI seems to break apache's rewriting.
Don't put / in locations
.