[Home]

Summary:ASTERISK-02258: typo in astcc
Reporter:Roy Sigurd Karlsbakk (rkarlsba)Labels:
Date Opened:2004-08-23 05:19:17Date Closed:2004-09-25 02:09:43
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:there's a typo in astcc that stops you from using another database host than localhost

****** ADDITIONAL INFORMATION ******

cvs server: Diffing .
Index: astcc-admin.cgi
===================================================================
RCS file: /usr/cvsroot/astcc/astcc-admin.cgi,v
retrieving revision 1.5
diff -u -r1.5 astcc-admin.cgi
--- astcc-admin.cgi     10 Aug 2004 11:13:42 -0000      1.5
+++ astcc-admin.cgi     23 Aug 2004 10:17:46 -0000
@@ -38,7 +38,7 @@
}

sub connect_db() {
-       my $dsn = "DBI:mysql:database=$config{'dbname'};host=${'dbhost'}";
+       my $dsn = "DBI:mysql:database=" . $config{'dbname'} . ";host=" . $config{'dbhost'};
       $dbh->disconnect if $dbh;
       $dbh = DBI->connect($dsn, $config{'dbuser'}, $config{'dbpass'});
}
Comments:By: Brian West (bkw918) 2004-08-23 09:10:48

attach the diff please.

By: Mark Spencer (markster) 2004-08-23 09:47:46

Fixed in a simpler way....