mirror of
https://github.com/zoriya/flood.git
synced 2026-06-05 03:39:24 +00:00
Encode uploaded torrent filenames
This commit is contained in:
@@ -36,7 +36,7 @@ var client = {
|
||||
// filesize of 524 kilobytes or less. This allows the user to send many
|
||||
// torrent files reliably.
|
||||
files.forEach((file, index) => {
|
||||
file.originalname = file.originalname.replace(/\s+/g, '.');
|
||||
file.originalname = encodeURIComponent(file.originalname);
|
||||
|
||||
let fileRequest = new ClientRequest();
|
||||
fileRequest.addFiles({files: file, path, start});
|
||||
|
||||
Reference in New Issue
Block a user