create-mailbox.php: force username to be lowercase - this helps some IMAP clients apprently

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@465 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
David Goodwin 16 years ago
parent 1df66da082
commit 9dcafb7afc

@ -259,6 +259,9 @@ TODO: this is the start of /create-mailbox code segment that was originally used
To be compared / merged.
*/
// apparently uppercase usernames really confuse some IMAP clients.
$fUsername = strtolower($fUsername);
$result = db_query ("INSERT INTO $table_mailbox (username,password,name,maildir,quota,domain,created,modified,active) VALUES ('$fUsername','$password','$fName','$maildir','$quota','$fDomain',NOW(),NOW(),'$sqlActive')");
if ($result['rows'] != 1 || !mailbox_postcreation($fUsername,$fDomain,$maildir, $quota))
{

Loading…
Cancel
Save