Fix inline plugin for non-ASCII rootpage

master
Feng Shu 2018-12-02 08:38:34 +08:00 committed by Simon McVittie
parent 67c7542672
commit e8dea1b924
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ sub sessioncgi ($$) {
error(gettext("please enter a page title"));
}
# if the page already exists, munge it to be unique
my $from=$q->param('from');
my $from=decode_utf8($q->param('from'));
my $add="";
while (exists $IkiWiki::pagecase{lc($from."/".$page.$add)}) {
$add=1 unless length $add;