View Issue Details

IDProjectCategoryView StatusLast Update
0015762mantisbtemailpublic2014-02-07 18:24
Reporternimmich Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.12 
Target Version1.2.16Fixed in Version1.2.16 
Summary0015762: email_regex_simple() case sensitive, leading to incorrect e-mail links
Description

Since 1.2.12 email_regex_simple() is case sensitive, introduced by 0014453. This leads to incorrect e-mail links.

Steps To Reproduce

Enter John.Doe@example.com as an e-mail address. In 1.2.11, John.Doe@example.com is displayed as a link, from 1.2.12 on only oe@example.com.

Additional Information

Patch:
Left base folder: mantisbt-1.2.15
Right base folder: mantisbt-1.2.15+
--- core\email_api.php 2013-04-12 09:37:00.000000000 +0200
+++ core\email_api.php 2013-04-16 16:16:12.000000000 +0200
@@ -73,13 +73,13 @@
$trecipient = "([a-z0-9!#*+\/=?^{|}~-]+(?:.[a-z0-9!#+\/=?^_{|}~-]+))";

    # a domain is one or more subdomains
    $t_subdomain = "(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)";
    $t_domain    = "(${t_subdomain}(?:\.${t_subdomain})*)";
  • $s_email_regex = "/${t_recipient}\@${t_domain}/";
  • $s_email_regex = "/${t_recipient}\@${t_domain}/i";
    }
    return $s_email_regex;
    }

    /**

    • check to see that the format is valid and that the mx record exists
TagsNo tags attached.

Relationships

has duplicate 0016018 closedSL-Gundam Plugin - EmailReporting Link in description not to full e-mailaddress 

Activities

dregad

dregad

2013-04-16 16:42

developer   ~0036617

Thanks for reporting the issue and for the patch. The fix will be included in the next release.

Related Changesets

MantisBT: master-1.2.x 4cb774c0

2013-04-16 12:33

dregad


Details Diff
Fix 0015762: case insensitive email parsing regex Affected Issues
0015762
mod - core/email_api.php Diff File

MantisBT: master fe90bbec

2013-04-16 12:33

dregad


Details Diff
Fix 0015762: case insensitive email parsing regex Affected Issues
0015762
mod - core/email_api.php Diff File

MantisBT: master-2.0.x 5e2795c1

2013-04-16 12:33

Damien Regad

Committer: dregadmin


Details Diff
Fix 0015762: case insensitive email parsing regex Affected Issues
0015762
mod - core/email_api.php Diff File