File/XSSFilter.class.php

Description

Simple configurable data filter.

Note that it is not perfect but should provide a good starting point for filtering input.

LICENSE: LGPLv3+

Example:

  1.  $f new XSSFilter(TrueTrueFalseFalseTrue);
  2.  $safer $f->filter($_GET);
  3.  
  4.  $f new XSSFilter(TrueTrueFalseFalseTrue);
  5.  $result $f->filter($input);
  6.  if ($result->changes{
  7.      print('Your input has been modified');
  8.  }
  9.  return $result->data;

Classes
Class Description
 class ExtendedResponseArray Array wrapper for safe arrays.
 class ExtendedResponseString String wrapper for safer strings.
 class XSSFilter Configurable XSSFilter for use by developers.

Documentation generated on Tue, 12 Oct 2010 16:47:11 -0400 by phpDocumentor 1.4.3