Home > Backend Development > PHP Tutorial > 如何配置PHP保护系统suhosin才能让native app可以上传图片

如何配置PHP保护系统suhosin才能让native app可以上传图片

WBOY
Release: 2016-06-23 13:49:43
Original
1144 people have browsed it

我给我的dz论坛在线转换了一个native的app,与普通网页及html5的app不同的是,这个app上传图片的发语音时会被suhosin阻止,而上传失败,注释掉suhosin.so扩展可以解决这个问题,但是觉得suhosin对于增强php的安全还是很有好处的。
我看了其官网的配置项
http://www.suhosin.org/stories/configuration.html
配置项特别多,不知道与哪个配置项有关,我尝试了关闭以下这些
suhosin.upload.disallow_binary=Off
suhosin.upload.remove_binary=Off
suhosin.request.disallow_nul=Off
suhosin.request.max_varname_length=1000
没有解决问题!
请问,如何配置PHP程序保护系统suhosin才能让native app可以上传图片、语音等?(普通网页及html5的app可以正常上传)
我的环境是
debian7.5
directadmin面板
lamp环境


回复讨论(解决方案)

suhosin很少有人用吗?用过的指点一下呗

good thanks

这个问题我找到配置项了,suhosin.simulation=On
没有满意回答,分只能给上面这位了,这样还有返回50%,要不然全浪费了

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template