remove / and \ from title

This commit is contained in:
loicbersier 2020-01-23 02:30:14 +01:00
parent af1a53c519
commit 5cf71c08b4

View file

@ -151,7 +151,7 @@ class DownloadController {
if (data.feed == 'on')
DLFile = `hidden/${title.replace(/\s/g, '_')}.${ext}`;
DLFile = DLFile.replace(/[()]/g, '_');
DLFile = DLFile.replace(/[()]|[/]|[\\]/g, '_');
video.pipe(fs.createWriteStream(`./public/uploads/${DLFile}`));
});