diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-03-26 14:04:28 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-03-26 14:04:28 -0400 |
commit | 503d83ffbc358714ad84e46ce523b8702268edb6 (patch) | |
tree | a7b0b5be1945eecccf0274208926ab2f87063210 /IkiWiki/Plugin/comments.pm | |
parent | 9e4adba63a769f164c2a6818e58070680c3e0eed (diff) | |
download | ikiwiki-503d83ffbc358714ad84e46ce523b8702268edb6.tar ikiwiki-503d83ffbc358714ad84e46ce523b8702268edb6.tar.gz |
comments: Fix too loose test for comments pages that matched normal pages with "comment_" in their name. Closes: #521322
Diffstat (limited to 'IkiWiki/Plugin/comments.pm')
-rw-r--r-- | IkiWiki/Plugin/comments.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index ee53dbc91..5782d9083 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -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); |