This extension sanitizes all user input ($_POST, $_GET, $_COOKIE,$_FILES) with html purifier to protect against XSS
protected/extensionsAdd the following to your config file.
'preload'=>array('sanitizer'), // application components 'components'=>array( 'sanitizer' => array( "class" => 'ESanitizer', 'sanitizeGet' =>false, 'sanitizePost' => true, 'sanitizeCookie' => true, ), )
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)
Total 2 comments
Why are you populating $_COOKIE from the $_FILES sanitization. This is a bug. It should populate to $_FILES. Am i missing something here?
How you use this plugin?
http://www.yiiframework.com/extension/esanitizer/
Leave a comment
Please login to leave your comment.