From 1aa487e282c4e1e93dc9955321281fa1bb08550b Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Wed, 15 Jan 2025 10:15:42 +0100 Subject: [PATCH] bugfix ticket system domain with subdomain and dash --- www/pages/ticket.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/pages/ticket.php b/www/pages/ticket.php index c004245b..63338d47 100644 --- a/www/pages/ticket.php +++ b/www/pages/ticket.php @@ -952,7 +952,7 @@ class Ticket { // Attachments $files = $this->app->erp->GetDateiSubjektObjektDateiname('Anhang','Ticket',$drafted_messages[0]['id'],""); - $pattern = '/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z]{2,63})(?:\.[a-z]{2,63})?/i'; + $pattern = '/[a-z0-9_\-\+\.]+@[a-z0-9\-]+\.([a-z\-]{2,63})(?:\.[a-z]{2,63})?/i'; preg_match_all($pattern, $drafted_messages[0]['mail'], $matches); $to = $matches[0];