From 43fd7cc0c5510fb6bc75b71c169a3da7c0517a0a Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 8 Mar 2007 22:16:03 +0000 Subject: correct dup page name detect in blog posting code --- IkiWiki/CGI.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; } -- cgit v1.2.3