]> sipb.mit.edu Git - ikiwiki.git/commitdiff
orphans: Fix unquoted page name in regexp.
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 9 Oct 2008 23:09:16 +0000 (19:09 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 9 Oct 2008 23:09:16 +0000 (19:09 -0400)
IkiWiki/Plugin/orphans.pm
debian/changelog

index b910758e0353e9d5d2762bbce41d009490fed120..32cbc5dd5508d3df58945ebef75a80704034c7ad 100644 (file)
@@ -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;
        }
index 9947c8a5817b7da49eeed173aa3a644a9fa5fb74..b89d76e1b3a19980856e6245c7ba917896de4603 100644 (file)
@@ -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 <joeyh@debian.org>  Mon, 06 Oct 2008 16:07:50 -0400