2 ms·
what do you mean. "wefwkefjwe'".to_i will goto zero every time. How is sql injection possible if I to_i your string?
by andrewfromx 9y ago
what do you mean. "wefwkefjwe'".to_i will goto zero every time. How is sql injection possible if I to_i your string?
- slantyyz 9y agoWouldn't it be better to not even run the query if id is a non-integer value, or does id = 0 have some intrinsic meaning in your data?