X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/4b36dee35a55b08d6d6f3bb3840220a4956f2540..e32b07ed2b8b43b5c9476c13fe4fbf10b39ab685:/IkiWiki/CGI.pm diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index db97740f6..4c15be0ae 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -372,9 +372,7 @@ sub cgi_editpage ($$) { #{{{ # favor the type of linking page $type=pagetype($pagesources{$from}); } - else { - $type=$config{default_pageext}; - } + $type=$config{default_pageext} unless defined $type; $file=$page.".".$type; } @@ -616,7 +614,7 @@ sub cgi () { #{{{ cgi_prefs($q, $session); } elsif ($do eq 'blog') { - my $page=titlepage($q->param('title')); + my $page=titlepage(decode_utf8($q->param('title'))); # if the page already exists, munge it to be unique my $from=$q->param('from'); my $add="";