]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
orphans: Fix unquoted page name in regexp.
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 9 Oct 2008 23:12:51 +0000 (19:12 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 9 Oct 2008 23:12:51 +0000 (19:12 -0400)
(cherry picked from commit a473cb2f74738d369130135b8c3ce0f6ef66af02)

IkiWiki/Plugin/orphans.pm
debian/changelog

index 0f96b9397445ea6f15b4b82cd2bded46143f6aaf..285390fbab6a4e73ee2a20b5595a84dca8dc184e 100644 (file)
@@ -34,7 +34,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 ff408c55c9acbfeb50a058f64f8ae16f6184baa8..cb9bc4a73646d3ef1d710d31e601b896f2977056 100644 (file)
@@ -1,3 +1,9 @@
+ikiwiki (2.53.3) UNRELEASED; urgency=low
+
+  * orphans: Fix unquoted page name in regexp.
+
+ -- Joey Hess <joeyh@debian.org>  Thu, 09 Oct 2008 19:12:18 -0400
+
 ikiwiki (2.53.2) testing-proposed-updates; urgency=low
 
   * Fix bad patch backport that broke generation of rss/atom feeds. Closes: #498224