]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 394926: Support for disabling extensions (aka plugins)
authormkanat%bugzilla.org <>
Sat, 15 Sep 2007 04:24:59 +0000 (04:24 +0000)
committermkanat%bugzilla.org <>
Sat, 15 Sep 2007 04:24:59 +0000 (04:24 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=ghendricks, a=mkanat

Bugzilla/Hook.pm

index bdc26f6a27679bd969f08eec02513033a7feaf42..a02d0d6714c35ce0c97b6c3214677181a5478eb1 100644 (file)
@@ -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');