Merged revisions 81189 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Tue, 28 Aug 2007 14:12:55 +0000 (14:12 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 28 Aug 2007 14:12:55 +0000 (14:12 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r81189 | mmichelson | 2007-08-28 09:12:14 -0500 (Tue, 28 Aug 2007) | 5 lines

Fixes a forwarding problem when using res_config_mysql

(closes issue #10573, reported by chrisvaughan, patch suggested by chrisvaughan as well)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81190 65c4cc65-6c06-0410-ace0-fbb531ad65f3

contrib/scripts/vmail.cgi

index 4ac1c85..a87fc1e 100644 (file)
@@ -242,7 +242,7 @@ sub validmailbox()
                                 my $dbh = DBI->connect("DBI:mysql:$dbname:$dbhost",$dbuser,$dbpass);
                                 my $sth = $dbh->prepare(qq{select fullname,context from voicemail where mailbox='$mbox' and password='$pass' and context='$context'});
                                 $sth->execute();
-                               if (($fullname, $category) = $sth->fetchrow_array()) {;
+                               if (($fullname, $context) = $sth->fetchrow_array()) {;
                                         return ($fullname ? $fullname : "unknown", $category);
                                 }
                         }