Co-authored-by: Andy Butland <abutland73@gmail.com>
This commit is contained in:
@@ -788,8 +788,7 @@ public class MediaController : ContentControllerBase
|
||||
continue;
|
||||
}
|
||||
|
||||
using var stream = new MemoryStream();
|
||||
await formFile.CopyToAsync(stream);
|
||||
await using var stream = formFile.OpenReadStream();
|
||||
if (_fileStreamSecurityValidator != null && _fileStreamSecurityValidator.IsConsideredSafe(stream) == false)
|
||||
{
|
||||
tempFiles.Notifications.Add(new BackOfficeNotification(
|
||||
|
||||
Reference in New Issue
Block a user