Skip to content

Commit

Permalink
Merge pull request #3636 from SimSync/fix_3632
Browse files Browse the repository at this point in the history
Fixes #3632: Lancheck failed on some utf-8 values
  • Loading branch information
CaMer0n authored Jan 23, 2019
2 parents 9237f25 + f1d2ca4 commit 2da6b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e107_admin/lancheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ function fill_phrases_array($data,$type)
$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];
Expand Down

0 comments on commit 2da6b5e

Please sign in to comment.