Bugs item #1783149, was opened at 2007-08-28 11:17
Message generated for change (Comment added) made by christian_boltz
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1783149&group_id=191583
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Michael Beiter (michaelbeiter)
Assigned to: Nobody/Anonymous (nobody)
Summary: Username in maildir path is not converted to lowercase
Initial Comment:
The entered username is not converted to lowercase in the maildir when adding a new mailbox.
If the username is entered as i.e. Te...@do...valid, the resulting username (for login) will be te...@do...valid, what is correct. When the maildir is chosen to be made up of domain and username, it will result as domain.invalid/TeST - what is incorrect, as at least maildrop in my setup won't be able to deliver mails: it expects domain.invalid/test as maildir (what is only consequent).
The fix is easy, it is sufficient to add a "strtolower" function call at the appropriate lines:
admin/create-mailbox.php
143c143
< $maildir = $fDomain . "/" . escape_string ($_POST['fUsername']) . "/";
---
> $maildir = $fDomain . "/" . strtolower(escape_string ($_POST['fUsername'])) . "/";
create-mailbox.php
154c154
< $maildir = $fDomain . "/" . escape_string ($_POST['fUsername']) . "/";
---
> $maildir = $fDomain . "/" . strtolower(escape_string ($_POST['fUsername'])) . "/";
----------------------------------------------------------------------
>Comment By: Christian Boltz (christian_boltz)
Date: 2007-10-07 21:52
Message:
Logged In: YES
user_id=593261
Originator: NO
Just curious: How does your maildroprc look like? (I'm also using maildrop
and using uppercase mailbox names works without problems.)
Anyway: Your change won't do any harm or backwards compatibility issues
(because it only affects creation of new mailboxes). I just applied your
patch to create-mailbox.php in the SVN.
Thanks for reporting this!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1783149&group_id=191583
|