Bug 356206: Allow "do $file" to be used within localconfig
Patch By Olav Vitters <olav@bkor.dhs.org> r=mkanat a=justdave git-svn-id: svn://10.0.0.236/trunk@213671 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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 = $@ ? $@ : $!;
|
||||
|
||||
Reference in New Issue
Block a user