mirror of
https://github.com/apache/struts.git
synced 2026-08-06 07:06:58 +00:00
Fix Textfield tag not allowing white space. See WW-5592. (#1489)
Co-authored-by: Greg Huber <ghuber@apache.org>
This commit is contained in:
@@ -60,7 +60,7 @@ public class Attributes extends LinkedHashMap<String, String> {
|
||||
public Attributes addIfExists(String attrName, Object paramValue, boolean encode) {
|
||||
if (paramValue != null) {
|
||||
String val = paramValue.toString();
|
||||
if (StringUtils.isNotBlank(val))
|
||||
if (StringUtils.isNotEmpty(val))
|
||||
put(attrName, (encode ? StringUtils.defaultString(StringEscapeUtils.escapeHtml4(val)) : val));
|
||||
}
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user