Merge branch 'hotfix/warehouse-eshop-gls-mail-parser' into 'master'

fixed email fetching utf8

See merge request fronk/thetool!718
This commit is contained in:
Luca Haid
2024-11-12 13:14:35 +00:00

View File

@@ -436,7 +436,7 @@ class WarehouseEShopOrderController extends TTCrud {
$pat = "/=([0-9A-F]{2})/";
$cha="'.chr(hexdec(";
# erase null signs in string
$str = preg_replace("/\x00/", "", $str);
$str = str_replace("\x00", "", $str);
# to decode with eval and replace
eval("\$str='".
preg_replace($pat,$cha."'$1')).'",$str)