Skip to content

Commit f831484

Browse files
committed
OPSMN-7011: Replaced the html entities &krishagni#34 and &#39 with double quotes and single quote respectively.
1 parent a090b84 commit f831484

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

WEB-INF/src/com/krishagni/catissueplus/rest/RestErrorController.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ private ErrorMessage getMessage(ErrorCode error, Object[] params) {
114114
}
115115

116116
private ErrorMessage getMessage(String code, Object[] params) {
117-
String message = MessageUtil.getInstance().getMessage(code.toLowerCase(), params);
118-
return new ErrorMessage(code, HtmlUtils.htmlEscape(message));
117+
String message = HtmlUtils.htmlEscape(MessageUtil.getInstance().getMessage(code.toLowerCase(), params))
118+
.replaceAll(""", "\"")
119+
.replaceAll("'", "'");
120+
return new ErrorMessage(code, message);
119121
}
120122

121123
private Object[] getExceptionId(OpenSpecimenException ose) {

0 commit comments

Comments
 (0)