diff --git a/htdocs/ticket/class/ticket.class.php b/htdocs/ticket/class/ticket.class.php index d7927cc86df..43adaa0b798 100644 --- a/htdocs/ticket/class/ticket.class.php +++ b/htdocs/ticket/class/ticket.class.php @@ -3030,7 +3030,7 @@ class Ticket extends CommonObject if (!empty($this->origin_references)) { // $this->origin_references should be '<'.$this->origin_references.'>' $references .= (empty($references) ? '' : ' ').$this->origin_references; } - if (!empty($this->email_msgid) && !preg_match('/'.preg_quote('/', $this->email_msgid).'/', $references)) { + if (!empty($this->email_msgid) && !preg_match('/'.preg_quote($this->email_msgid, '/').'/', $references)) { $references .= (empty($references) ? '' : ' ').'<'.$this->email_msgid.'>'; } if ($references) {