Thank you for your help Marco & Simon. No doubt, your code is much
cleaner and better.

One more question, without any filter or something could be my
original code somehow compromised (mean some security bug)? Or rather
was a major problem in the possibility of a script crash?

On 4/26/12, ma...@behnke.biz <ma...@behnke.biz> wrote:
>
> You definitly should. There were some bugs (even in bigger applications
> like Coppermine f.e.) that have been introduced by clients sending
> manipulated ip oder hostname Strings.
>
> For the IP address simply check if it is a valid IP4 or IP6 tupel. There
> are checks for that.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to