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:
olav%bkor.dhs.org
2006-10-15 12:03:13 +00:00
parent a86039c9d1
commit 2b9f079df7

View 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 = $@ ? $@ : $!;