From 358cdeb397b9f67f17bb32f8fb03bc2f30b37bb9 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Tue, 14 Jan 2014 11:01:19 -0600 Subject: [PATCH] Fix subject ticket number matcher (again) --- include/class.thread.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.thread.php b/include/class.thread.php index 34c5e14a6..c4255ac7c 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -728,7 +728,7 @@ Class ThreadEntry { $subject = $mailinfo['subject']; $match = array(); 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'])) ) // Return last message for the thread -- GitLab