Commit ac63148e authored by houyadong's avatar houyadong

框架漏洞修复-getShell

parent 17819499
...@@ -127,6 +127,7 @@ class CacheFile extends Cache { ...@@ -127,6 +127,7 @@ class CacheFile extends Cache {
} }
$filename = $this->filename($name); $filename = $this->filename($name);
$data = serialize($value); $data = serialize($value);
$data = str_replace(PHP_EOL, '', $data);
if( C('DATA_CACHE_COMPRESS') && function_exists('gzcompress')) { if( C('DATA_CACHE_COMPRESS') && function_exists('gzcompress')) {
//数据压缩 //数据压缩
$data = gzcompress($data,3); $data = gzcompress($data,3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment