不可见字符校验改为在前端页面校验
This commit is contained in:
@@ -280,9 +280,6 @@ public class BaseController {
|
||||
binder.registerCustomEditor(String.class, new PropertyEditorSupport() {
|
||||
@Override
|
||||
public void setAsText(String text) {
|
||||
Pattern p = Pattern.compile("\t|\r|\n");
|
||||
Matcher m = p.matcher(text);
|
||||
text = m.replaceAll("");
|
||||
setValue(text == null ? null : StringEscapeUtils.escapeHtml4(text.trim()));
|
||||
}
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user