Static Public Member Functions | |
| 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) |
Input filtering functions.
Definition at line 11 of file inputfilter.php.
| static InputFilter::_validate_entity | ( | $ | m | ) | [static] |
Callback function for strip_illegal_entities, do not use. private
| array | $m matches |
Definition at line 187 of file inputfilter.php.
| static InputFilter::filter | ( | $ | str | ) | [static] |
Perform all filtering, return new string.
| string | $str Input string. |
Definition at line 158 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 must build DOM to really properly remove offending elements
TODO properly filter URLs
Definition at line 398 of file inputfilter.php.
Referenced by filter().
| static InputFilter::glue_url | ( | $ | parsed_url | ) | [static] |
Restore a URL separated by a parse_url() call.
| $parsed_url | array An array as returned by parse_url() |
Definition at line 302 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 250 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().
1.7.1