diff options
author | ivan <ivan> | 2003-11-24 14:29:01 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-11-24 14:29:01 +0000 |
commit | 24d7a586d33a5561b44ae0cfef07afb649b6fcbc (patch) | |
tree | bf9608f04dfb0398586ac3822f07d88816a03567 /httemplate | |
parent | e10493f669a9bd15b66ee49d639fca08760862c4 (diff) |
fix html quoting problems
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/edit/part_export.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/httemplate/edit/part_export.cgi b/httemplate/edit/part_export.cgi index cc60f1aeb..4d0c7391f 100644 --- a/httemplate/edit/part_export.cgi +++ b/httemplate/edit/part_export.cgi @@ -68,9 +68,10 @@ my $widget = new HTML::Widgets::SelectLayers( $html .= '</SELECT>'; } elsif ( $type eq 'textarea' ) { $html .= qq!<TEXTAREA NAME="$option" COLS=80 ROWS=8 WRAP="virtual">!. - qq!$value</TEXTAREA>!; + encode_entities($value). '</TEXTAREA>'; } elsif ( $type eq 'text' ) { - $html .= qq!<INPUT TYPE="text" NAME="$option" VALUE="$value" SIZE=64>!; + $html .= qq!<INPUT TYPE="text" NAME="$option" VALUE="!. + encode_entities($value). '" SIZE=64>'; } elsif ( $type eq 'checkbox' ) { $html .= qq!<INPUT TYPE="checkbox" NAME="$option" VALUE="1"!; $html .= ' CHECKED' if $value; |