fix: strip exif data on image uploads

This commit is contained in:
Barış Soner Uşaklı
2019-03-06 16:36:02 -05:00
parent 9aeb291e9b
commit 5eaa14e746
2 changed files with 24 additions and 0 deletions

View File

@@ -58,6 +58,9 @@ function uploadAsImage(req, uploadedFile, callback) {
}
image.checkDimensions(uploadedFile.path, next);
},
function (next) {
image.stripEXIF(uploadedFile.path, next);
},
function (next) {
if (plugins.hasListeners('filter:uploadImage')) {
return plugins.fireHook('filter:uploadImage', {