summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-09-15 06:24:59 +0200
committermkanat%bugzilla.org <>2007-09-15 06:24:59 +0200
commit2327a1538d5d8fbe9c8f7728f350e37d74e584c3 (patch)
treeadcfdb85e42e3d9db8625ba6966cbb0b5f619342 /Bugzilla
parent4421ce1c4788d8069a089b7eca1939c4052d8550 (diff)
downloadbugzilla-2327a1538d5d8fbe9c8f7728f350e37d74e584c3.tar.gz
bugzilla-2327a1538d5d8fbe9c8f7728f350e37d74e584c3.tar.xz
Bug 394926: Support for disabling extensions (aka plugins)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=ghendricks, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Hook.pm1
1 files changed, 1 insertions, 0 deletions
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');