esanitizer ESanitizer - uses HTMLPurifier to sanitize all user input

  1. Documentation
  2. Change Log

This extension sanitizes all user input ($_POST, $_GET, $_COOKIE,$_FILES) with html purifier to protect against XSS

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
Usage

Add the following to your config file.

'preload'=>array('sanitizer'),

	
	// application components
	'components'=>array(
			'sanitizer' => array(
					"class" => 'ESanitizer',
					'sanitizeGet' =>false,
					'sanitizePost' => true,
					'sanitizeCookie' => true,

				),
)

Change Log

September 10,2009

Update: added support for sanitizing $_FILES (enabled by default) added support for nofollowing links (enabled by default) added support for opening links in new windows (disabled by default)

September 9, 2009
  • Initial release.
2 1
4 followers
930 downloads
Yii Version: 1.1
License: (not set)
Category: Security
Tags:
Developed by: YorkSEO
Created on: Sep 9, 2009
Last updated: 8 years ago

Downloads

show all