How to configure the PHP protection system suhosin so that nativeapp can upload images

Source: Internet
Author: User
How can I configure the PHP protection system suhosin so that nativeapp can upload images? I converted a native app online to my dz Forum. What is different from a common Web page or html5 app, this app will be blocked by suhosin when uploading an image, but the upload fails and suhosin is commented out. so extension can solve this problem, but I think suhosin is very good for enhancing php Security.
I saw the configuration items on its official website.
Http://www.suhosin.org/stories/configuration.html
There are many configuration items, and I don't know which configuration item is related. I tried to disable the following
Suhosin. upload. disallow_binary = Off
Suhosin. upload. remove_binary = Off
Suhosin. request. disallow_nul = Off
Suhosin. request. max_varname_length = 1000
The problem persists!
How can I configure the PHP program to protect the system suhosin so that native apps can upload images, voice, and so on? (Normal webpages and html5 apps can be uploaded normally)
My environment is
Debian7.5
Directadmin panel
Lamp environment


Reply to discussion (solution)

Is suhosin rarely used? I used to give you some advice.

Good thanks

I found the configuration item, suhosin. simulation = On.
If you are not satisfied with the answer, you can only give the score to the above one. in this case, 50% is returned, otherwise it will be wasted.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.