From: mkanat%bugzilla.org <> Date: Sat, 15 Sep 2007 04:24:59 +0000 (+0000) Subject: Bug 394926: Support for disabling extensions (aka plugins) X-Git-Tag: bugzilla-3.1.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2327a1538d5d8fbe9c8f7728f350e37d74e584c3;p=thirdparty%2Fbugzilla.git Bug 394926: Support for disabling extensions (aka plugins) Patch By Max Kanat-Alexander r=ghendricks, a=mkanat --- diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index bdc26f6a27..a02d0d6714 100644 --- a/Bugzilla/Hook.pm +++ b/Bugzilla/Hook.pm @@ -41,6 +41,7 @@ sub process { # If there's malicious data here, we have much bigger issues to # worry about, so we can safely detaint them: trick_taint($extension); + next if -e "$extension/disabled"; if (-e $extension.'/code/'.$name.'.pl') { Bugzilla->hook_args($args); do($extension.'/code/'.$name.'.pl');