X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/ee1ad53c4c2710aa7ded61bdc56f3a8cce514f22..ed05e40566a8d2a39530507598d835764885cf73:/IkiWiki/Plugin/opendiscussion.pm 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; } #}}}