diff --git a/src/etc/inc/shaper.inc b/src/etc/inc/shaper.inc index d59989d925..c017caf257 100644 --- a/src/etc/inc/shaper.inc +++ b/src/etc/inc/shaper.inc @@ -1600,13 +1600,13 @@ class priq_queue { } function build_tree() { - $tree = "
  • GetInterface()."&queue=". $this->GetQname()."&action=show"; + $tree = "
  • GetInterface()."&queue=". htmlspecialchars($this->GetQname())."&action=show"; $tree .= "\" "; $tmpvalue = $this->GetDefault(); if (!empty($tmpvalue)) { $tree .= " class=\"navlnk\""; } - $tree .= " >" . $this->GetQname() . ""; + $tree .= " >" . htmlspecialchars($this->GetQname()) . ""; /* * Not needed here! * if (is_array($queues) { @@ -2369,13 +2369,13 @@ class hfsc_queue extends priq_queue { } function build_tree() { - $tree = "
  • GetInterface() ."&queue=" . $this->GetQname()."&action=show"; + $tree = "
  • GetInterface() ."&queue=" . htmlspecialchars($this->GetQname())."&action=show"; $tree .= "\" "; $tmpvalue = $this->GetDefault(); if (!empty($tmpvalue)) { $tree .= " class=\"navlnk\""; } - $tree .= " >" . $this->GetQname() . ""; + $tree .= " >" . htmlspecialchars($this->GetQname()) . ""; if (is_array($this->subqueues)) { $tree .= "