projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24b59b3
)
let's allow comments of "0"
author
Joey Hess
<joey@kitenet.net>
Wed, 9 Jun 2010 21:47:49 +0000
(17:47 -0400)
committer
Joey Hess
<joey@kitenet.net>
Wed, 9 Jun 2010 21:47:49 +0000
(17:47 -0400)
IkiWiki/Plugin/comments.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/comments.pm
b/IkiWiki/Plugin/comments.pm
index 86b60a2b2864037ac4644fed9e0d64d5fecd3812..b244a74313ef80b376037895915ab75bab222088 100644
(file)
--- a/
IkiWiki/Plugin/comments.pm
+++ b/
IkiWiki/Plugin/comments.pm
@@
-433,7
+433,8
@@
sub editcomment ($$) {
$content .= " date=\"" . decode_utf8(strftime('%Y-%m-%dT%H:%M:%SZ', gmtime)) . "\"\n";
- my $editcontent = $form->field('editcontent') || '';
+ my $editcontent = $form->field('editcontent');
+ $editcontent="" if ! defined $editcontent;
$editcontent =~ s/\r\n/\n/g;
$editcontent =~ s/\r/\n/g;
$editcontent =~ s/"/\\"/g;