aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-09-12 21:40:24 +0100
committerSimon McVittie <smcv@debian.org>2014-09-12 21:40:24 +0100
commita55752a7bedb83fa5339f232b9a61a60a67251f3 (patch)
tree31b23a0057f574aa31239b300fba9a14911bc3c1 /IkiWiki
parent2eea320b674870956f6ad6c7b377b158cec2d624 (diff)
parentef7c80258daa2f3cf87fa4adea58f804a646fd77 (diff)
downloadikiwiki-a55752a7bedb83fa5339f232b9a61a60a67251f3.tar
ikiwiki-a55752a7bedb83fa5339f232b9a61a60a67251f3.tar.gz
Merge branch 'ready/comments'
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/comments.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index a0ca9f32e..98ae13810 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -438,6 +438,16 @@ sub editcomment ($$) {
$page));
}
+ # There's no UI to get here, but someone might construct the URL,
+ # leading to a comment that exists in the repository but isn't
+ # shown
+ if (!pagespec_match($page, $config{comments_pagespec},
+ location => $page)) {
+ error(sprintf(gettext(
+ "comments on page '%s' are not allowed"),
+ $page));
+ }
+
if (pagespec_match($page, $config{comments_closed_pagespec},
location => $page)) {
error(sprintf(gettext(