summaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-04-24 13:49:15 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-04-24 13:49:15 -0400
commit7d7f85bbb5ec48a193973ef2dbe6d78a2f4f8ea8 (patch)
tree59d657a93f264a88a418472ef3a17f11387007a1 /IkiWiki.pm
parent827f6b9bfc7ad0d3834078d53bf239e3331218ce (diff)
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.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm4
1 files changed, 4 insertions, 0 deletions
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.' }';
} #}}}