-
Notifications
You must be signed in to change notification settings - Fork 825
6.7: WW-5528 Ensure multipart upload illegal characters reported as error #1215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6.7: WW-5528 Ensure multipart upload illegal characters reported as error #1215
Conversation
e16d24b
to
9775cbc
Compare
|
||
if (isExcluded(fileName)) { | ||
String normalizedFileName = normalizeSpace(fileName); | ||
LOG.debug("File name [{}] is not accepted", normalizedFileName); |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks Low
core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java
Fixed
Show fixed
Hide fixed
core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaMultiPartRequest.java
Fixed
Show resolved
Hide resolved
9775cbc
to
9753a30
Compare
9753a30
to
fe3dd6b
Compare
|
protected boolean isInvalidInput(String fieldName) { | ||
if (isExcluded(fieldName)) { | ||
String normalizedFieldName = normalizeSpace(fieldName); | ||
LOG.debug("Form field [{}] is rejected!", normalizedFieldName); |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks Low
@@ -154,10 +142,10 @@ | |||
|
|||
protected void processNormalFormField(FileItem item, String charset) throws UnsupportedEncodingException { | |||
try { | |||
LOG.debug("Item is a normal form field"); | |||
String fieldName = item.getFieldName(); | |||
LOG.debug("Item: {} is a normal form field", normalizeSpace(fieldName)); |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks Low
WW-5528
Cherry-pick #1213