summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorolav%bkor.dhs.org <>2006-10-15 21:03:13 +0200
committerolav%bkor.dhs.org <>2006-10-15 21:03:13 +0200
commit155b6f827f45feae82602c8010625408285b382d (patch)
treee00ceb5dd5fd1f53bd2db12a2f01f3576a3ebb2b /Bugzilla
parentbd26b3faae1d11dc683a826fc0483104d1671aff (diff)
downloadbugzilla-155b6f827f45feae82602c8010625408285b382d.tar.gz
bugzilla-155b6f827f45feae82602c8010625408285b382d.tar.xz
Bug 356206: Allow "do $file" to be used within localconfig
Patch By Olav Vitters <olav@bkor.dhs.org> r=mkanat a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Install/Localconfig.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Install/Localconfig.pm b/Bugzilla/Install/Localconfig.pm
index 1f5da3108..9cc8c49cc 100644
--- a/Bugzilla/Install/Localconfig.pm
+++ b/Bugzilla/Install/Localconfig.pm
@@ -199,6 +199,9 @@ sub read_localconfig {
my %localconfig;
if (-e $filename) {
my $s = new Safe;
+ # Some people like to store their database password in another file.
+ $s->permit('dofile');
+
$s->rdo($filename);
if ($@ || $!) {
my $err_msg = $@ ? $@ : $!;