Fix protection translate with bad %

This commit is contained in:
Laurent Destailleur (aka Eldy) 2025-01-28 13:33:49 +01:00
parent 08049ae3d3
commit 9021b3485c

View File

@ -699,7 +699,7 @@ class Translate
$str
);
$str = preg_replace('/([^%])%([^0sd])/', '__percent_parenthesis__', $str);
$str = preg_replace('/([^%])%([^%0sdmYIMpHSBb])/', '\1__percent_parenthesis__\2', $str);
if (strpos($key, 'Format') !== 0) {
try {