From 53cf5ca9a30fe856793d2a38b52c8b78b2aba17b Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 16 Aug 2006 17:37:36 +0000 Subject: * Fix an infinite loop in the aggregator when finding a unique filename. --- IkiWiki/Plugin/aggregate.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 23428cb0e..6c9958df8 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -267,7 +267,7 @@ sub add_page (@) { #{{{ $page=$feed->{dir}."/item"; } my $c=""; - while (exists $IkiWiki::pagecase{lc $page} || + while (exists $IkiWiki::pagecase{lc $page.$c} || -e pagefile($page.$c)) { $c++ } -- cgit v1.2.3