TYPO3 CMS  TYPO3_7-6
RemoveXSS Class Reference

Static Public Member Functions

static process ($value, $replaceString='< x >')
 

Detailed Description

Usage: Run every variable passed in through it. The goal of this function is to be a generic function that can be used to parse almost any input and render it XSS safe. For more information on actual XSS attacks, check out http://ha.ckers.org/xss.html. Another excellent site is the XSS Database which details each attack and how it works.

Used with permission by the author. URL: http://quickwired.com/smallprojects/php_xss_filter_function.php

Check XSS attacks on http://ha.ckers.org/xss.html

License: This code is public domain, you are free to do whatever you want with it, including adding it to your own project which can be under any license.

Definition at line 19 of file RemoveXSS.php.

Member Function Documentation

◆ process()

static RemoveXSS::process (   $value,
  $replaceString = '<x>' 
)
static

Removes potential XSS code from an input string.

Using an external class by Travis Puderbaugh kalla.nosp@m.har@.nosp@m.quick.nosp@m.wire.nosp@m.d.com

Parameters
string$valueInput string
string$replaceStringreplaceString for inserting in keywords (which destroys the tags)
Returns
string Input string with potential XSS code removed

Definition at line 30 of file RemoveXSS.php.