Added urldecode for ports in API to deal with slashes in port names

This commit is contained in:
laf
2014-09-16 22:19:28 +01:00
parent 754c0b0507
commit b980710a4e
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ function get_graph_by_port()
$router = $app->router()->getCurrentRoute()->getParams();
$device_id = $router['id'];
$vars = array();
$vars['port'] = $router['port'];
$vars['port'] = urldecode($router['port']);
$vars['type'] = $router['type'] ?: 'port_bits';
if(!empty($router['from']))
{