Class ValidationUtils

java.lang.Object
com.cksource.ckfinder.utils.ValidationUtils

public class ValidationUtils extends Object
  • Constructor Details

    • ValidationUtils

      public ValidationUtils()
  • Method Details

    • streamContainsHtmlData

      public static boolean streamContainsHtmlData(InputStream in) throws IOException
      Detect HTML in the first KB to prevent against potential security issue. Returns true if file contains insecure HTML code at the beginning.
      Parameters:
      in - data stream to check
      Returns:
      true if detected.
      Throws:
      IOException - when io error occurs.