projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quote already-crypted passwords to prevent variable substitution
[freeside.git]
/
httemplate
/
edit
/
part_export.cgi
diff --git
a/httemplate/edit/part_export.cgi
b/httemplate/edit/part_export.cgi
index
4defbc8
..
4d0c739
100644
(file)
--- a/
httemplate/edit/part_export.cgi
+++ b/
httemplate/edit/part_export.cgi
@@
-67,12
+67,15
@@
my $widget = new HTML::Widgets::SelectLayers(
}
$html .= '</SELECT>';
} elsif ( $type eq 'textarea' ) {
}
$html .= '</SELECT>';
} elsif ( $type eq 'textarea' ) {
- $html .= qq!<TEXTAREA NAME="$option" COLS=80 WRAP="virtual">!.
-
qq!$value</TEXTAREA>!
;
+ $html .= qq!<TEXTAREA NAME="$option" COLS=80
ROWS=8
WRAP="virtual">!.
+
encode_entities($value). '</TEXTAREA>'
;
} elsif ( $type eq 'text' ) {
} 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' ) {
} elsif ( $type eq 'checkbox' ) {
- $html .= qq!<INPUT TYPE="checkbox" NAME="$option" VALUE="1">!;
+ $html .= qq!<INPUT TYPE="checkbox" NAME="$option" VALUE="1"!;
+ $html .= ' CHECKED' if $value;
+ $html .= '>';
} else {
$html .= "unknown type $type";
}
} else {
$html .= "unknown type $type";
}