From 2327a1538d5d8fbe9c8f7728f350e37d74e584c3 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 15 Sep 2007 04:24:59 +0000 Subject: Bug 394926: Support for disabling extensions (aka plugins) Patch By Max Kanat-Alexander r=ghendricks, a=mkanat --- Bugzilla/Hook.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla') diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm index bdc26f6a2..a02d0d671 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'); -- cgit v1.2.3-24-g4f1b