comment: Fix problem moderating comments of certian pages with utf-8 in their name.
[ikiwiki.git] / IkiWiki / Plugin / comments.pm
index d34951570da77d1f9a423b874d362bd1b800aec8..30ade56348c10aad8c77a6c3213bc7244209f187 100644 (file)
@@ -569,6 +569,7 @@ sub commentmoderation ($$) {
                my $added=0;
                foreach my $id (keys %vars) {
                        if ($id =~ /(.*)\._comment(?:_pending)?$/) {
+                               $id=decode_utf8($id);
                                my $action=$cgi->param($id);
                                next if $action eq 'Defer' && ! $rejectalldefer;