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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.