Accomodate equal signs in DSNs and add documentation, based upon mmichelson's feedback.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 22 Mar 2010 16:59:35 +0000 (16:59 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 22 Mar 2010 16:59:35 +0000 (16:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@253712 65c4cc65-6c06-0410-ace0-fbb531ad65f3

configs/dbsep.conf.sample
contrib/scripts/dbsep.cgi

index 00d187d..9e0dd04 100644 (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
index 8010b21..8340673 100755 (executable)
@@ -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;