mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
fixes #3632: the regex to extract the language defines and values
missed the "u" (unicode) flag. Due to that, some utf-8 values were malformed during processing.
This commit is contained in:
parent
f387fa149f
commit
f1d2ca4465
@ -1922,7 +1922,7 @@ class lancheck
|
||||
$retloc[$type][$locale[1]]= $locale[2];
|
||||
}
|
||||
|
||||
if(preg_match_all('/^\s*?define\s*?\(\s*?(\'|\")([\w]+)(\'|\")\s*?,\s*?(\'|\")([\s\S]*?)\s*?(\'|\")\s*?\)\s*?;/im',$data,$matches))
|
||||
if(preg_match_all('/^\s*?define\s*?\(\s*?(\'|\")([\w]+)(\'|\")\s*?,\s*?(\'|\")([\s\S]*?)\s*?(\'|\")\s*?\)\s*?;/imu',$data,$matches))
|
||||
{
|
||||
$def = $matches[2];
|
||||
$values = $matches[5];
|
||||
|
Loading…
x
Reference in New Issue
Block a user