This commit is contained in:
Marco Antonio Nina Mena
2017-12-04 13:25:35 +00:00
committed by Julio Cesar Laura Avendaño
parent abe71a6ffe
commit 0d533e19d9
363 changed files with 23948 additions and 44623 deletions

View File

@@ -7116,7 +7116,9 @@ class Cases
// BUG 8134, FIX!// for single/double quote troubles // Unserialize with utf8 content get trouble
if ($unserializedData === false) {
$unserializedData = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $data);
$unserializedData = preg_replace_callback('!s:(\d+):"(.*?)";!', function ($m) {
return 's:' . strlen($m[2]) . ':"' . $m[2] . '";';
}, $data);
$unserializedData = @unserialize($unserializedData);
}