You are here: Re: [PHP] Easier way to clean GET Variables ? « PHP « IT news, forums, messages
Re: [PHP] Easier way to clean GET Variables ?

Posted by "Richard Lynch" on 08/27/05 03:04

On Thu, August 25, 2005 9:54 pm, Chris Shiflett wrote:
> Proper filtering is necessarily tedious. There is no way to filter a
> last name, a server name, a file name, an IP address, a ZIP code, and
> a
> comment with the same function. Those who try wind up creating a
> "lowest
> common denominator" filtering function, or they confuse filtering with
> escaping (as demonstrated by some of the replies).
>
> As a good friend of mine likes to say, you have to get your hands
> dirty.

Can anybody point to a good resource of a collection of filtering for
common inputs such as those listed by Chris above?...

I've searched for that and generally found one of two things:

1. Nothing useful.
2. A system so baroque and complex and with so much other baggage, it
would be impossible to integrate. See 1.

I'm looking more for code snippets or specific Regex functions for
each item, rather than a monolithic Borg-like "filtering package" and
have never one I liked.

That could be mostly my fault due to peculiar requirements, but there
it is.

--
Like Music?
http://l-i-e.com/artists.htm

 

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

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