From c86e41f6e0acc3cf8a2ffe1f9c6aafa4a29d00bc Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Wed, 7 Oct 2015 23:53:18 +0200 Subject: [PATCH] Escape quotes for ifAlias, since it breaks overlib if such appears. --- html/includes/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index df3ad76e4..003d3a6f0 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -583,7 +583,7 @@ function generate_port_link($port, $text=null, $type=null, $overlib=1, $single_g $content = '
'.$port['hostname'].' - '.fixifName($port['label']).'
'; if ($port['ifAlias']) { - $content .= $port['ifAlias'].'
'; + $content .= escape_quotes($port['ifAlias']).'
'; } $content .= "
";