Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 4996ff8

Browse files
committed
🐛 修复下载文件时空格没有转义
1 parent 0f0e06c commit 4996ff8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inc/cluster.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ private function downloader(Swoole\Coroutine\Http\Client $client, $file,$bar) {
129129
mkdir($filePath, 0777, true);
130130
}
131131
$savePath = $filePath . $file->hash;
132+
$file->path = str_replace(' ', '%20', $file->path);
132133
$downloader = $client->download($file->path,$DOWNLOAD_DIR.'/'.substr($file->hash, 0, 2).'/'.$file->hash);
133134
if (!$downloader) {
134135
mlog("Error connecting to the main control:{$client->errMsg}",2);

0 commit comments

Comments
 (0)