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:
Barış Soner Uşaklı
2020-06-22 12:08:35 -04:00
committed by GitHub
parent 76c577fa3c
commit 48b41debe6
8 changed files with 66 additions and 72 deletions

View File

@@ -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);
}
};