You are here: Re: How do you secure a WYSIWYG editor? « PHP Programming Language « IT news, forums, messages
Re: How do you secure a WYSIWYG editor?

Posted by C. (http://symcbean.blogspot.com/) on 10/06/69 12:00

On 15 Jan, 19:38, a...@spamcop.net (axlq) wrote:
> In article <vl1qo3did9p695cr8sck2gpfejo4h03...@4ax.com>,
>
> <firewood...@yahoo.com> wrote:
> >I use tinyMCE to provide a formattable textarea for the users of my
> >website. How do I filter data so complex as that?
>
> What do you want to filter? With TinyMCE you can control the
> features that a user puts into the text. If the user tries to
> insert some HTML tags you don't allow (use any of the regexp
> functions or stristri()), simply warn the user and redisplay the
> text until the user fixes it.

!

Maybe its possible to configure the editor but thats client-side even
if it is configured not to allow certain tags to be entered, the
receiving PHP script should sanitize the input.

RTFM for strip_tags()

C.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация