View Issue Details

IDProjectCategoryView StatusLast Update
0011006mantisbtemailpublic2009-10-07 14:19
Reporterbrianstv Assigned Todhx  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Versiongit trunk 
Target Version1.2.0rc2Fixed in Version1.2.0rc2 
Summary0011006: When changing an email address and using $g_limit_email_domain get App Error # 1200 - Invalid Email Address
Description

When changing an email address and using $g_limit_email_domain get App Error # 1200 - Invalid Email Address

Steps To Reproduce

In config_inc.php set $g_limit_email_domain=xxx.com
Then setting or changing a user's email address generates the Application Error 0001200 - Invalid Email Address

Additional Information

It looks like the fix would be in core/email_api.php

Change:
if( preg_match( email_regex_simple(), $p_email, $t_check ) ) {
$t_local = $t_check[1];
$t_domain = $t_check[2];

to

    if( preg_match( email_regex_simple(), $p_email, $t_check ) ) {
            $t_local = $t_check[2];
            $t_domain = $t_check[3];
TagsNo tags attached.

Activities

dhx

dhx

2009-10-06 05:04

reporter   ~0023075

Thanks for reporting this bug, it is fixed now :)

Related Changesets

MantisBT: master-1.2.x b2480c09

2009-10-06 05:00

dhx


Details Diff
Fix 0011006: Email verification always fails when enforcing the domain

Email verification always fails when $g_limit_email_domain is set. This
is due to too many parenthesis around an email related regex pattern.
Affected Issues
0011006
mod - core/email_api.php Diff File

MantisBT: master ee8a6e3c

2009-10-06 05:00

dhx


Details Diff
Fix 0011006: Email verification always fails when enforcing the domain

Email verification always fails when $g_limit_email_domain is set. This
is due to too many parenthesis around an email related regex pattern.
Affected Issues
0011006
mod - core/email_api.php Diff File