未验证 提交 bb943b85 编写于 作者: Q qkqpttgf 提交者: GitHub

try fix file content

上级 2a1b9af0
......@@ -1112,6 +1112,15 @@ function fetch_files($path = '/')
savecache('path_' . $path, $files);
}
}
if (isset($files['file'])) {
if (in_array(splitlast($files['name'],'.')[1], $exts['txt'])) {
if (!(isset($files['content'])&&$files['content']['stat']==200)) {
$content1 = curl_request($files[$_SERVER['DownurlStrName']]);
$files['content'] = $content1;
savecache('path_' . $path, $files);
}
}
}
if (isset($files['error'])) {
$files['error']['stat'] = $arr['stat'];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册