开发者

Should I still escape? $_GET and XSS, SQL Injection and other PHP Security Concerns

If I am retrieving data with $_GET from the URL string and not displaying that data back on a webpage or doing any SQL actions with it, should I still consider using escape, regular expression and other security code? The string could c开发者_如何学Contain any char.

Hope that makes sense.


if you are not outputting the string or passing it to another program (sql, open file, …) you don't need to escape it.


If you are not using the URL param in a SQL statement it can not be used as a SQL injection.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜