From 392796a4610568932ab051b9e33bcd25716d80dc Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 21 Dec 2015 15:37:25 -0500 Subject: Encode parameters in shaper queues before display. --- etc/inc/shaper.inc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index 2b4e3dd..89890b8 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -646,7 +646,7 @@ class altq_root_queue { $form .= ""; $form .= "
" . gettext("Name") . ""; $form .= ""; - $form .= "".$this->GetQname().""; + $form .= "".htmlspecialchars($this->GetQname()).""; $form .= ""; $form .= "" . gettext("Scheduler Type "); $form .= ""; @@ -681,7 +681,7 @@ class altq_root_queue { $form .= "" . gettext("Bandwidth"); $form .= ""; $form .= "GetBandwidth() . "\" />"; + $form .= htmlspecialchars($this->GetBandwidth()) . "\" />"; $form .= "GetQlimit(); + $form .= htmlspecialchars($this->GetQlimit()); $form .= "\" />"; $form .= ""; $form .= "TBR Size"; $form .= ""; $form .= "
GetTbrConfig(); + $form .= htmlspecialchars($this->GetTbrConfig()); $form .= "\" />"; $form .= "
"; $form .= gettext("Adjusts the size, in bytes, of the token bucket regulator. " @@ -718,8 +718,8 @@ class altq_root_queue { . "bandwidth are used to determine the size."); $form .= ""; $form .= "GetInterface() . "\" />"; - $form .= "GetQname()."\" />"; + $form .= " value=\"" . htmlspecialchars($this->GetInterface()) . "\" />"; + $form .= "GetQname())."\" />"; return $form; -- cgit v1.1