Commit 4f0a4ec8823b4d252cd17eae38e09db398fd68a2

Authored by michael
1 parent ccf0644c

added stripslashes (#1599)


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1430 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/visualpatterns/PatternListBox.inc
@@ -123,9 +123,9 @@ class PatternListBox { @@ -123,9 +123,9 @@ class PatternListBox {
123 } 123 }
124 while ($sql->next_record()) { 124 while ($sql->next_record()) {
125 if ($this->selectedValue == $sql->f("value")) { 125 if ($this->selectedValue == $sql->f("value")) {
126 - $sToRender .= "<OPTION value=\"" . $sql->f("value") . "\" SELECTED>" . $sql->f("display") . "</OPTION>\n"; 126 + $sToRender .= "<OPTION value=\"" . $sql->f("value") . "\" SELECTED>" . stripslashes($$sql->f("display")) . "</OPTION>\n";
127 } else { 127 } else {
128 - $sToRender .= "<OPTION value=\"" . $sql->f("value") . "\">" . $sql->f("display") . "</OPTION>\n"; 128 + $sToRender .= "<OPTION value=\"" . $sql->f("value") . "\">" . stripslashes($sql->f("display")) . "</OPTION>\n";
129 } 129 }
130 } 130 }
131 $sToRender .= "</SELECT>\n"; 131 $sToRender .= "</SELECT>\n";