]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 356206: Allow "do $file" to be used within localconfig
authorolav%bkor.dhs.org <>
Sun, 15 Oct 2006 19:03:13 +0000 (19:03 +0000)
committerolav%bkor.dhs.org <>
Sun, 15 Oct 2006 19:03:13 +0000 (19:03 +0000)
Patch By Olav Vitters <olav@bkor.dhs.org> r=mkanat a=justdave

Bugzilla/Install/Localconfig.pm

index 1f5da3108f4bb6c771e03e576872cec72e0e64ac..9cc8c49ccfd13a3853033ff4adb419aa1f0d24c3 100644 (file)
@@ -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 = $@ ? $@ : $!;