You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LOGGER.info( Logger.SECURITY_FAILURE, "Cleaned up invalid HTML input: " + errors );
117
+
StringBuildersb = newStringBuilder();
118
+
for ( inti = 0; i < errors.size(); i++ ) {
119
+
sb.append(errors.get(i));
120
+
if ( i != errors.size() - 1 ) {
121
+
sb.append(",");
122
+
}
123
+
}
124
+
thrownewValidationException( context + ": Invalid HTML input", "Invalid HTML input does not follow rules in antisamy-esapi.xml: context=" + context + " errors=" + sb.toString());
118
125
}
119
-
126
+
120
127
returntest.getCleanHTML().trim();
121
-
128
+
122
129
} catch (ScanExceptione) {
123
130
thrownewValidationException( context + ": Invalid HTML input", "Invalid HTML input: context=" + context + " error=" + e.getMessage(), e, context );
0 commit comments