[svn-commits] tilghman: trunk r253712 - in /trunk: configs/ contrib/scripts/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Mar 22 11:59:39 CDT 2010


Author: tilghman
Date: Mon Mar 22 11:59:35 2010
New Revision: 253712

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=253712
Log:
Accomodate equal signs in DSNs and add documentation, based upon mmichelson's feedback.

Modified:
    trunk/configs/dbsep.conf.sample
    trunk/contrib/scripts/dbsep.cgi

Modified: trunk/configs/dbsep.conf.sample
URL: http://svnview.digium.com/svn/asterisk/trunk/configs/dbsep.conf.sample?view=diff&rev=253712&r1=253711&r2=253712
==============================================================================
--- trunk/configs/dbsep.conf.sample (original)
+++ trunk/configs/dbsep.conf.sample Mon Mar 22 11:59:35 2010
@@ -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

Modified: trunk/contrib/scripts/dbsep.cgi
URL: http://svnview.digium.com/svn/asterisk/trunk/contrib/scripts/dbsep.cgi?view=diff&rev=253712&r1=253711&r2=253712
==============================================================================
--- trunk/contrib/scripts/dbsep.cgi (original)
+++ trunk/contrib/scripts/dbsep.cgi Mon Mar 22 11:59:35 2010
@@ -36,8 +36,8 @@
 	chomp;
 	next if (m/^[#;]/);
 	next if (m/^\s*$/);
-	my ($name,$value) = split '=';
-	$cfg{lc($name)} = $value;
+	my ($name, at value) = split '=';
+	$cfg{lc($name)} = join('=', @value);
 }
 close CFG;
 




More information about the svn-commits mailing list