]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/opendiscussion.pm
editpage escaping fixes
[git.ikiwiki.info.git] / IkiWiki / Plugin / opendiscussion.pm
index fd5c9673d68c3581722dbe41502d0363d502a5ac..c835f01061ea8a5364d369b768ebbada2fb6acfd 100644 (file)
@@ -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;
 } #}}}