Home  >  Article  >  Backend Development  >  magic_quotes_gpc

magic_quotes_gpc

WBOY
WBOYOriginal
2016-06-23 13:53:051009browse

是不是开户magic_quotes_gpc后就不用过虑表单字符了啊????是不是就不怕注入了。

对 $_COOKIE[name]是不是也管用啊?


回复讨论(解决方案)

php5.3 以前,理论上是的
但:
php5.3 默认 magic_quotes_gpc = off
php5.4 及以后,已取消 magic_quotes_gpc 开关
所以需要你自行保护你的安全

自己做?查比?好。

php5.3 以前,理论上是的
但:
php5.3 默认 magic_quotes_gpc = off
php5.4 及以后,已取消 magic_quotes_gpc 开关
所以需要你自行保护你的安全



你好。那么如果一个表允许输入100个字符。那么为了考虑过虑是不是要200个字符的数据库库才行呢???

不需要!转义符是不会被保存的

不需要!转义符是不会被保存的



谢谢您
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn