mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix protection translate with bad %
This commit is contained in:
parent
08049ae3d3
commit
9021b3485c
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user