From: joey Date: Thu, 8 Mar 2007 22:16:03 +0000 (+0000) Subject: correct dup page name detect in blog posting code X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/43fd7cc0c5510fb6bc75b71c169a3da7c0517a0a correct dup page name detect in blog posting code --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 05f4c6e0f..1c4e088dc 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -686,7 +686,7 @@ sub cgi (;$$) { #{{{ # if the page already exists, munge it to be unique my $from=$q->param('from'); my $add=""; - while (exists $pagecase{lc "$from/$page$add"}) { + while (exists $pagecase{lc($from."/".titlepage($page).$add)}) { $add=1 unless length $add; $add++; }