Jump to content

Is it a security risk?


3raser

Recommended Posts

That will make it safe for a query, but chances are you should be using ctype_digit, since is_numeric will return TRUE for +1.3950e218 (exponential number) and 0xAF39BB2DC (hexadecimal number). If you need to allow negative numbers, you can check against the abs value of it with ctype_digit() as well.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.