Make sure we do not pass multiple CGI parameters in function calls
[ikiwiki.git] / IkiWiki / Plugin / inline.pm
index f578526cc0da9fe1c369c5d1e709fe21f5154341..300941943b298be6142713005ee681f6e55cd8df 100644 (file)
@@ -119,7 +119,7 @@ sub sessioncgi ($$) {
        my $session=shift;
 
        if ($q->param('do') eq 'blog') {
-               my $page=titlepage(decode_utf8($q->param('title')));
+               my $page=titlepage(decode_utf8(scalar $q->param('title')));
                $page=~s/(\/)/"__".ord($1)."__"/eg; # don't create subdirs
                # if the page already exists, munge it to be unique
                my $from=$q->param('from');