You are here: escape mechanisms « All PHP « IT news, forums, messages
escape mechanisms

Posted by Tangent Spider on 07/12/07 00:21

hi,

i'm tweaking coppermine photo gallery to try to prevent some comment spam.

there's a "bad words" function, an array variable something like this:

$lang_bad_words = array('*bad1*', 'bad2', 'Fu\(*', .... etc.. )

I'm wanting to use this replace function to nuke HTTP references, I got the
"http" parts out, but I'm not having any luck nuking the double-fwd.slash &
colon that form part of URL's.

I tried this as part of the above array: '*\/\/'

ie, wild-card-escape-fwd-slash-escape-fwd-slash

is this even close?

thanks from an HTML'er to my PHP brothers ...

 

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

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