Identity code wasn't checking username for domain portion, if email address
was not set, it re-appended domain name to username.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9601
7612ce4b-ef26-0410-bec9-
ea0150e637f0
508 or WAI fixes. Original idea and patch by dugan <at> passwall.com.
- Fixed broken attachments caused by inconsistency of PHP chunk_split().
Thanks to Roalt Zijlstra.
+ - Identity code was not checking for domain part in username before setting
+ email address (Bug #1219184).
Version 1.5.0 - 2 February 2004
global $username, $data_dir, $domain;
$em = getPref($data_dir,$username,'email_address');
- if ( ! $em ) $em = $username.'@'.$domain;
+ if ( ! $em ) {
+ if (strpos($username , '@') == false) {
+ $em = $username.'@'.$domain;
+ } else {
+ $em = $username;
+ }
+ }
$identities = array();
/* We always have this one, even if the user doesn't use multiple identities */