aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-09 17:47:49 -0400
committerJoey Hess <joey@kitenet.net>2010-06-09 17:47:49 -0400
commit1bdf98a4a0b3a0bddbede8390df0930193d06a5a (patch)
tree51240d1b1cca7fdfec87b348942cbeeec5630453
parent24b59b3a9edb350ef0dc064b0a3f3cdee01f81be (diff)
downloadikiwiki-1bdf98a4a0b3a0bddbede8390df0930193d06a5a.tar
ikiwiki-1bdf98a4a0b3a0bddbede8390df0930193d06a5a.tar.gz
let's allow comments of "0"
-rw-r--r--IkiWiki/Plugin/comments.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 86b60a2b2..b244a7431 100644
--- 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;