fixed email fetching utf8

This commit is contained in:
Luca Haid
2024-11-12 14:14:15 +01:00
parent 24676a67a0
commit 50228c36e4

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)