From 9021b3485cf67ec2a2ecdc3209a72e15443c88ce Mon Sep 17 00:00:00 2001 From: "Laurent Destailleur (aka Eldy)" Date: Tue, 28 Jan 2025 13:33:49 +0100 Subject: [PATCH] Fix protection translate with bad % --- htdocs/core/class/translate.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/translate.class.php b/htdocs/core/class/translate.class.php index 20f39fab005..688be96d260 100644 --- a/htdocs/core/class/translate.class.php +++ b/htdocs/core/class/translate.class.php @@ -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 {