]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/poll.pm
Don't use --noprefix for the patch
[git.ikiwiki.info.git] / IkiWiki / Plugin / poll.pm
index 3bd4af2060111ed4dbe12e3262c0f1e200ca6ba7..eb0e6ef04d086ad34e900a31f37a2407edbefabc 100644 (file)
@@ -99,7 +99,7 @@ sub sessioncgi ($$) {
        my $cgi=shift;
        my $session=shift;
        if (defined $cgi->param('do') && $cgi->param('do') eq "poll") {
-               my $choice=decode_utf8($cgi->param('choice'));
+               my $choice=decode_utf8(scalar $cgi->param('choice'));
                if (! defined $choice || not length $choice) {
                        error("no choice specified");
                }