]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
let's allow comments of "0"
authorJoey Hess <joey@kitenet.net>
Wed, 9 Jun 2010 21:47:49 +0000 (17:47 -0400)
committerJoey Hess <joey@kitenet.net>
Wed, 9 Jun 2010 21:47:49 +0000 (17:47 -0400)
IkiWiki/Plugin/comments.pm

index 86b60a2b2864037ac4644fed9e0d64d5fecd3812..b244a74313ef80b376037895915ab75bab222088 100644 (file)
@@ -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;