mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Accomodate equal signs in DSNs and add documentation, based upon mmichelson's feedback.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@253712 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# The Data Source Name, as specified by the Perl DBI module.
|
# 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
|
dsn=somedsn
|
||||||
|
|
||||||
# Connected database user
|
# Connected database user
|
||||||
|
|||||||
@@ -36,8 +36,8 @@ while (<CFG>) {
|
|||||||
chomp;
|
chomp;
|
||||||
next if (m/^[#;]/);
|
next if (m/^[#;]/);
|
||||||
next if (m/^\s*$/);
|
next if (m/^\s*$/);
|
||||||
my ($name,$value) = split '=';
|
my ($name,@value) = split '=';
|
||||||
$cfg{lc($name)} = $value;
|
$cfg{lc($name)} = join('=', @value);
|
||||||
}
|
}
|
||||||
close CFG;
|
close CFG;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user