Skip to content


Sanitizing input in Joomla

Here is a quick tip. To sanitize input before you send the query to the database in Joomla, you can use:

$text = "My 'awesome' text";
$text = $database->Quote($text);

This will quote and escape special characters in the text string.

Reference:
http://help.joomla.org/content/view/525/125/

Posted in Joomla.


One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. calvin says

    That wont sanitize the data though, and doesnt the framework provide method for this ?



Some HTML is OK

or, reply to this post via trackback.