summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/opendiscussion.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/opendiscussion.pm b/IkiWiki/Plugin/opendiscussion.pm
index fd5c9673d..c835f0106 100644
--- a/IkiWiki/Plugin/opendiscussion.pm
+++ b/IkiWiki/Plugin/opendiscussion.pm
@@ -15,7 +15,7 @@ sub canedit ($$) { #{{{
my $session=shift;
my $discussion=gettext("discussion");
- return "" if $page=~/\/\Q$discussion\E$/;
+ return "" if $page=~/(\/|^)\Q$discussion\E$/;
return undef;
} #}}}