Appendix B. Joomla! Filter Types

Filtering data is an important aspect of creating a secure website. Data coming from untrusted sources, such as the URL or a form, should always be filtered using the most restrictive filter possible for the situation.

The JFilterInput class (libraries/joomla/filter/filterinput.php) is used to provide the built-in filtering functionality in Joomla!. Table B.1 shows the filtering types that are available.

Table B.1. Joomla Filter Types

Image

HTML Filtering

The HTML and STRING filter types both include HTML filtering. Two different types of filtering are available: white list and black list.

White list filtering allows ...

Get Joomla!™ Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.