]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
bleagh
authorJoey Hess <joey@kitenet.net>
Mon, 24 Jan 2011 20:56:28 +0000 (16:56 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 24 Jan 2011 21:22:15 +0000 (17:22 -0400)
(cherry picked from commit 2be49b623a85b10ad584d7e4e8c31c8436d1c16f)

IkiWiki/Plugin/comments.pm
debian/changelog

index 6bacd26c7832ae75ecd5b6d4dea97b4a6c244453..29c9d4f40012b096dba442298f5addd2206d2252 100644 (file)
@@ -365,7 +365,7 @@ sub editcomment ($$) {
 
        # The untaint is OK (as in editpage) because we're about to pass
        # it to file_pruned and wiki_file_regexp anyway.
-       my $page = $form->field('page')=~/$config{wiki_file_regexp}/;
+       my ($page) = $form->field('page')=~/$config{wiki_file_regexp}/;
        $page = IkiWiki::possibly_foolish_untaint($page);
        if (! defined $page || ! length $page ||
                IkiWiki::file_pruned($page)) {
index 4f9b06d2995f96afc379f491301eb86df755c0da..604f1b1da3539b59d6c52dbd2f44c63790b16a1a 100644 (file)
@@ -1,3 +1,9 @@
+ikiwiki (3.20110124) UNRELEASED; urgency=low
+
+  * comments: Fix commenting, broken by security fix.
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 24 Jan 2011 16:56:05 -0400
+
 ikiwiki (3.20100815.5) testing; urgency=low
 
   * comments: Fix XSS security hole due to missing validation of page name.