comments: Fix too loose test for comments pages that matched normal pages with "comment_" in their name. Closes: #521322

master
Joey Hess 2009-03-26 14:04:28 -04:00
parent 9e4adba63a
commit 503d83ffbc
2 changed files with 3 additions and 1 deletions

View File

@ -672,7 +672,7 @@ sub previewcomment ($$$) {
sub commentsshown ($) {
my $page=shift;
return ! pagespec_match($page, "*/$config{comments_pagename}*",
return ! pagespec_match($page, "internal(*/$config{comments_pagename}*)",
location => $page) &&
pagespec_match($page, $config{comments_pagespec},
location => $page);

2
debian/changelog vendored
View File

@ -7,6 +7,8 @@ ikiwiki (3.09) UNRELEASED; urgency=low
not last commit time.
* Updated French translation (Jean-Luc Coulon). Closes: #521072
* css: Add clear: both to inlinefooter.
* comments: Fix too loose test for comments pages that matched
normal pages with "comment_" in their name. Closes: #521322
-- Joey Hess <joeyh@debian.org> Thu, 19 Mar 2009 15:32:49 -0400