Class HtmlSanitizer

java.lang.Object
com.sdl.delivery.security.html.HtmlSanitizer

public class HtmlSanitizer extends Object
  • Method Details

    • sanitizeHttpHeader

      public static String sanitizeHttpHeader(String text)
      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