From 7d7f85bbb5ec48a193973ef2dbe6d78a2f4f8ea8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 24 Apr 2008 13:49:15 -0400 Subject: Correct a bug in pagespec matching, where a empty pagespec matched all pages. This manifested as wikis with no locked pages treating them all as locked. The bug was introduced in version 2.41. Medium urgency upload due to above fix. --- IkiWiki.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'IkiWiki.pm') diff --git a/IkiWiki.pm b/IkiWiki.pm index 68047b9b9..3802559a5 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -1247,6 +1247,10 @@ sub pagespec_translate ($) { #{{{ } } + if (! length $code) { + $code=0; + } + return eval 'sub { my $page=shift; '.$code.' }'; } #}}} -- cgit v1.2.3