不可见字符校验改为在前端页面校验

This commit is contained in:
chenjinsong
2018-08-08 16:50:00 +08:00
parent a7561e7ddd
commit 8ffad93344
6 changed files with 19 additions and 6 deletions

View File

@@ -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