Package com.sdl.delivery.security.html
Class HtmlSanitizer
java.lang.Object
com.sdl.delivery.security.html.HtmlSanitizer
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringsanitizeHttpHeader(String text) To prevent attacker mocking http headers they need to not have any html entities as well as CRLF chars.
-
Method Details
-
sanitizeHttpHeader
To prevent attacker mocking http headers they need to not have any html entities as well as CRLF chars.- Parameters:
text- to put into http header name/value- Returns:
- secured text to be placed into http header
-