From: Joey Hess Date: Thu, 9 Oct 2008 23:09:16 +0000 (-0400) Subject: orphans: Fix unquoted page name in regexp. X-Git-Tag: 2.67~47 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/a473cb2f74738d369130135b8c3ce0f6ef66af02?hp=8c191adf5c8be51c9b60f597b0de78a7341d5a04 orphans: Fix unquoted page name in regexp. --- diff --git a/IkiWiki/Plugin/orphans.pm b/IkiWiki/Plugin/orphans.pm index b910758e0..32cbc5dd5 100644 --- a/IkiWiki/Plugin/orphans.pm +++ b/IkiWiki/Plugin/orphans.pm @@ -43,7 +43,7 @@ sub preprocess (@) { #{{{ next if grep { length $_ && ($_ !~ /\/\Q$discussion\E$/i || ! $config{discussion}) && - bestlink($page, $_) !~ /^($page|)$/ + bestlink($page, $_) !~ /^(\Q$page\E|)$/ } @{$links{$page}}; push @orphans, $page; } diff --git a/debian/changelog b/debian/changelog index 9947c8a58..b89d76e1b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,7 @@ ikiwiki (2.67) UNRELEASED; urgency=low is locked for. This supports most of the ACL type things users have been wanting to be done. Closes: #443346 (It does not control who can read a page, but that's out of scope for ikiwiki.) + * orphans: Fix unquoted page name in regexp. -- Joey Hess Mon, 06 Oct 2008 16:07:50 -0400