[Asterisk-cvs] asterisk/contrib/scripts vmail.cgi,1.11,1.12

markster at lists.digium.com markster at lists.digium.com
Mon Sep 6 02:16:28 CDT 2004


Update of /usr/cvsroot/asterisk/contrib/scripts
In directory mongoose.digium.com:/tmp/cvs-serv16097/contrib/scripts

Modified Files:
	vmail.cgi 
Log Message:
Allow "-" in password to make it unchangable (bug #2386)


Index: vmail.cgi
===================================================================
RCS file: /usr/cvsroot/asterisk/contrib/scripts/vmail.cgi,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- vmail.cgi	16 May 2004 17:52:24 -0000	1.11
+++ vmail.cgi	6 Sep 2004 06:19:17 -0000	1.12
@@ -107,7 +107,7 @@
 			if (/([^\s]+)\s*\=\>?\s*(.*)/) {
 				@fields = split(/\,\s*/, $2);
 #				print "<p>Mailbox is $1\n";
-				if (($mbox eq $1) && ($pass eq $fields[0]) && ($context eq $category)) {
+				if (($mbox eq $1) && (($pass eq $fields[0]) || ("-${pass}" eq $fields[0])) && ($context eq $category)) {
 					return ($fields[1] ? $fields[1] : "Extension $mbox in $context", $category);
 				}
 			}




More information about the svn-commits mailing list