diff options
author | Simon McVittie <smcv@debian.org> | 2014-09-12 21:40:24 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2014-09-12 21:40:24 +0100 |
commit | a55752a7bedb83fa5339f232b9a61a60a67251f3 (patch) | |
tree | 31b23a0057f574aa31239b300fba9a14911bc3c1 /IkiWiki | |
parent | 2eea320b674870956f6ad6c7b377b158cec2d624 (diff) | |
parent | ef7c80258daa2f3cf87fa4adea58f804a646fd77 (diff) | |
download | ikiwiki-a55752a7bedb83fa5339f232b9a61a60a67251f3.tar ikiwiki-a55752a7bedb83fa5339f232b9a61a60a67251f3.tar.gz |
Merge branch 'ready/comments'
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/comments.pm | 10 |
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( |