mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
fix: vulnerability in cover and admin uploads (#8419)
* fix: vulnerability in cover and admin uploads * fix: remove old test * fix: update tests
This commit is contained in:
committed by
GitHub
parent
76c577fa3c
commit
48b41debe6
@@ -101,7 +101,7 @@ image.stripEXIF = async function (path) {
|
||||
const sharp = requireSharp();
|
||||
await sharp(buffer, { failOnError: true }).rotate().toFile(path);
|
||||
} catch (err) {
|
||||
winston.error(err);
|
||||
winston.error(err.stack);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user