Static Public Member Functions

InputFilter Class Reference

List of all members.

Static Public Member Functions

static __static ()
static filter ($str)
static strip_nulls ($str)
static _validate_entity ($m)
static strip_illegal_entities ($str)
static parse_url ($url)
static glue_url ($parsed_url)
static filter_html_elements ($str)

Detailed Description

Input filtering functions.

Definition at line 12 of file inputfilter.php.


Member Function Documentation

static InputFilter::_validate_entity ( m  )  [static]

Callback function for strip_illegal_entities, do not use. private

Parameters:
array $m matches

valid entity references have the form /&named([;<
])/ for named entities, or /&#({1,5}|[xX][0-9a-fA-F]{1,4})([;<
])/ for numeric character references

Definition at line 202 of file inputfilter.php.

static InputFilter::filter ( str  )  [static]

Perform all filtering, return new string.

Parameters:
string $str Input string.
Returns:
string Filtered output string.

Definition at line 168 of file inputfilter.php.

Referenced by SpamChecker::action_comment_insert_before(), FeedbackHandler::add_comment(), SuperGlobal::base_filter(), and Pingback::xmlrpc_pingback__ping().

static InputFilter::filter_html_elements ( str  )  [static]
Todo:

TODO must build DOM to really properly remove offending elements

TODO properly filter URLs

Definition at line 420 of file inputfilter.php.

Referenced by filter().

static InputFilter::glue_url ( parsed_url  )  [static]

Restore a URL separated by a parse_url() call.

Parameters:
$parsed_url array An array as returned by parse_url()

Definition at line 324 of file inputfilter.php.

Referenced by FeedbackHandler::add_comment(), Utils::de_amp(), Theme::theme_comment_author_link(), and Pingback::xmlrpc_pingback__ping().

static InputFilter::parse_url ( url  )  [static]

This really doesn't belong here. It should also be done much better. This is a nasty, NASTY kludge.

Definition at line 272 of file inputfilter.php.

Referenced by FeedbackHandler::add_comment(), Utils::de_amp(), CURLRequestProcessor::execute(), Site::get_dir(), Pingback::pingback_all_links(), Theme::theme_comment_author_link(), FormValidators::validate_url(), and Pingback::xmlrpc_pingback__ping().

static InputFilter::strip_illegal_entities ( str  )  [static]

Remove illegal entities, return new string.

Parameters:
string $str Input string.
Returns:
string Filtered output string.

Definition at line 262 of file inputfilter.php.

Referenced by filter().

static InputFilter::strip_nulls ( str  )  [static]

Remove nulls, return new string.

Parameters:
string $str Input string.
Returns:
string Filtered output string.

Definition at line 190 of file inputfilter.php.

Referenced by filter().


The documentation for this class was generated from the following file: