Re: Should I check imput for bad chars in this case?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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, marco@xxxxxxxxxx <marco@xxxxxxxxxx> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux