diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-22 16:59:35 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-03-22 16:59:35 +0000 |
commit | dda9658b60e3e91d0cc6d9e089edc1d66e96c5a3 (patch) | |
tree | 5f88cb7300c50276ac2a6d26cf0553697a9aef4d | |
parent | 86d8630481441988067b2d82f5d3cca6e2741754 (diff) |
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
-rw-r--r-- | configs/dbsep.conf.sample | 1 | ||||
-rwxr-xr-x | contrib/scripts/dbsep.cgi | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/configs/dbsep.conf.sample b/configs/dbsep.conf.sample index 00d187d14..9e0dd04e0 100644 --- a/configs/dbsep.conf.sample +++ b/configs/dbsep.conf.sample @@ -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 diff --git a/contrib/scripts/dbsep.cgi b/contrib/scripts/dbsep.cgi index 8010b21c3..834067331 100755 --- a/contrib/scripts/dbsep.cgi +++ b/contrib/scripts/dbsep.cgi @@ -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; |