[support] sanitizing text box input for sql searches (custom search)

Michel Morelli michel at ziobuddalabs.it
Wed Mar 3 13:33:07 UTC 2010


Greg Knaddison ha scritto:
> On Wed, Mar 3, 2010 at 5:52 AM, Michel Morelli <michel at ziobuddalabs.it> wrote:
>   
>> you need to use "input filter" and the function to use is "check_markup".
>>
>>     
>
> That is part of the story for simple cases, 
Yes. If you need to display only an item content you can use 
"check_markup".
node_load()+check_markup it's more quick than a node_view() (for a 
single or few node's items).
In all other case node_view is the right choice.

M.

-- 
Michel 'ZioBudda' Morelli                       michel at ziobuddalabs.it
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ziodrupal.net       			MSN: michel at ziobuddalabs.it                   
						JABBER: michel at ziobuddalabs.it

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20100303/0adb2a2c/attachment.html 


More information about the support mailing list