Improved: Secure the uploads
Few more debug log texts changes for clarity
I backport to ease future merging while backporting
@@ -455,7 +455,8 @@ public class SecuredUpload {
}
} catch (Exception e) {
safeState = false;
- Debug.logError(e, "for security reason the PDF file " + file.getAbsolutePath() + " can't be uploaded !", MODULE);
+ Debug.logInfo(e, "The file " + file.getAbsolutePath() + " is not a valid PDF file. For security reason it's not accepted as a such file",
+ MODULE);
}
return safeState;
}
