Skip to content
Snippets Groups Projects
Commit fdabf274 authored by Jared Hancock's avatar Jared Hancock
Browse files

Merge remote branch 'upstream-1.7/develop' into develop

parents 50980e25 0e435d67
No related branches found
No related tags found
No related merge requests found
...@@ -744,7 +744,7 @@ Class ThreadEntry { ...@@ -744,7 +744,7 @@ Class ThreadEntry {
$subject = $mailinfo['subject']; $subject = $mailinfo['subject'];
$match = array(); $match = array();
if ($subject && $mailinfo['email'] if ($subject && $mailinfo['email']
&& preg_match("/#[\p{L}-]+?([0-9]{1,10})/u", $subject, $match) && preg_match("/#(?:[\p{L}-]+)?([0-9]{1,10})/u", $subject, $match)
&& ($tid = Ticket::getIdByExtId((int)$match[1], $mailinfo['email'])) && ($tid = Ticket::getIdByExtId((int)$match[1], $mailinfo['email']))
) )
// Return last message for the thread // Return last message for the thread
......
...@@ -205,7 +205,7 @@ class Ticket { ...@@ -205,7 +205,7 @@ class Ticket {
function getAuthToken() { function getAuthToken() {
# XXX: Support variable email address (for CCs) # XXX: Support variable email address (for CCs)
return md5($this->getId() . $this->getEmail() . SECRET_SALT); return md5($this->getId() . strtolower($this->getEmail()) . SECRET_SALT);
} }
function getName(){ function getName(){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment