From 83e782330dc6ca77c4069b63102110f21fb96321 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 30 Jun 2021 16:18:45 +0200 Subject: [PATCH] Try to take only quoted_printable to decode and avoid decoding url params as quoted --- api/src/Mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail.php b/api/src/Mail.php index cc71dbb6e1..26760e663a 100644 --- a/api/src/Mail.php +++ b/api/src/Mail.php @@ -6608,7 +6608,7 @@ class Mail static function detect_qp($string) { - return preg_match('/(=[0-9][A-F])|(=[A-F][0-9])|(=[A-F][A-F])|(=[0-9][0-9])/', $string); + return preg_match('/(=[0-9][A-F])|(=[A-F][0-9])|(=[A-F][A-F])|(=[0-9][0-9])[\s|=]/', $string); } /**