"0" sholud be printed in HTML form fields.
Patch by fu.
diffs (12 lines):
diff -r 99a316c1ecd6 -r ae12bfaa91d2 cgi-bin/htmlcontrols.pl
--- a/cgi-bin/htmlcontrols.pl Tue Apr 19 18:39:23 2011 +0800
+++ b/cgi-bin/htmlcontrols.pl Tue Apr 19 18:53:32 2011 +0800
@@ -305,7 +305,7 @@ sub html_text
my $ret = '';
$ret .= "<input type=\"$type\"";
foreach (grep { ! /^(type|disabled|raw|noescape)$/ } keys %$opts) {
- my $val = $opts->{$_} || '';
+ my $val = defined $opts->{$_} ? $opts->{$_} : '';
$ret .= " $_=\"" . ( $ehtml ? LJ::ehtml( $val ) : $val ) . "\"";
}
if ($opts->{'raw'}) { $ret .= " $opts->{'raw'}"; }
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog