1
0
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:
Achim Ennenbach 2019-01-23 18:58:50 +01:00
parent f387fa149f
commit f1d2ca4465

View File

@ -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];