String decode(
String
$source
)
|
|
Try to convert to plaintext
Parameters:
API Tags:
String escapeString(
$string,
&$connection, String
$source, Resource
$connection
)
|
|
Parameters:
|
String |
$source: |
|
|
Resource |
$connection: |
- An open MySQL connection |
|
|
$string: |
|
|
|
&$connection: |
|
API Tags:
Information Tags:
| Author: | Daniel Morris |
| Author: | Chris Tobin |
Array filterAttr(
Array
$attrSet
)
|
|
Internal method to strip a tag of certain attributes
Parameters:
API Tags:
String filterTags(
String
$source
)
|
|
Internal method to strip a string of certain tags
Parameters:
|
String |
$source: |
- input string to be 'cleaned' |
API Tags:
| Return: | - 'cleaned' version of input parameter |
| Access: | protected |
void inputFilter(
[Array
$tagsArray = array()], [Array
$attrArray = array()], [int
$tagsMethod = 0], [int
$attrMethod = 0], [int
$xssAuto = 1]
)
|
|
Constructor for inputFilter class. Only first parameter is required.
Parameters:
|
Array |
$tagsArray: |
- list of user-defined tags |
|
Array |
$attrArray: |
- list of user-defined attributes |
|
int |
$tagsMethod: |
- 0= allow just user-defined, 1= allow all but user-defined |
|
int |
$attrMethod: |
- 0= allow just user-defined, 1= allow all but user-defined |
|
int |
$xssAuto: |
- 0= only auto clean essentials, 1= allow clean blacklisted tags/attr |
String process(
Mixed
$source
)
|
|
Method to be called by another php script. Processes for XSS and specified bad code.
Parameters:
|
Mixed |
$source: |
- input string/array-of-string to be 'cleaned' |
API Tags:
| Return: | - 'cleaned' version of input parameter |
| Access: | public |
String quoteSmart(
String
$source,
&$connection, Resource
$connection
)
|
|
Parameters:
|
String |
$source: |
|
|
Resource |
$connection: |
- An open MySQL connection |
|
|
&$connection: |
|
API Tags:
Information Tags:
| Author: | Daniel Morris |
| Author: | Chris Tobin |
String remove(
String
$source
)
|
|
Internal method to iteratively remove all unwanted tags and attributes
Parameters:
|
String |
$source: |
- input string to be 'cleaned' |
API Tags:
| Return: | - 'cleaned' version of input parameter |
| Access: | protected |
String safeSQL(
Mixed
$source,
&$connection, Buffer
$connection
)
|
|
Method to be called by another php script. Processes for SQL injection
Parameters:
|
Mixed |
$source: |
- input string/array-of-string to be 'cleaned' |
|
Buffer |
$connection: |
- An open MySQL connection |
|
|
&$connection: |
|
API Tags:
| Return: | - 'cleaned' version of input parameter |
| Access: | public |