dect
/
asterisk
Archived
13
0
Fork 0

Accomodate equal signs in DSNs and add documentation, based upon mmichelson's feedback.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@253712 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2010-03-22 16:59:35 +00:00
parent 86d8630481
commit dda9658b60
2 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@
#
# The Data Source Name, as specified by the Perl DBI module.
# Typically, this will be along the lines of 'DBI:mysql:astdbname[:dbhostname]' or 'DBI:Pg:dbname=astdbname;hostname=dbhostname'
dsn=somedsn
# Connected database user

View File

@ -36,8 +36,8 @@ while (<CFG>) {
chomp;
next if (m/^[#;]/);
next if (m/^\s*$/);
my ($name,$value) = split '=';
$cfg{lc($name)} = $value;
my ($name,@value) = split '=';
$cfg{lc($name)} = join('=', @value);
}
close CFG;