mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Downloaded filename sanitization in request block.
This commit is contained in:
@@ -611,7 +611,7 @@ namespace RuriLib
|
||||
}
|
||||
else
|
||||
{
|
||||
var file = ReplaceValues(downloadPath, data);
|
||||
var file = MakeValidFileName(ReplaceValues(downloadPath, data));
|
||||
using (var stream = File.Create(file)) { response.ToMemoryStream().CopyTo(stream); } // Read the stream
|
||||
data.Log(new LogEntry("File saved as " + file, Colors.Green));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user