-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
Hello, Is it possible to disable automatic request parsing?
At least in version 3 it parses like this:
JSON requests are converted into associative arrays with json_decode($input, true).
XML requests are converted into a SimpleXMLElement with simplexml_load_string($input).
URL-encoded requests are converted into a PHP array with parse_str($input).
But I don't have installed the xml extension or have the functions disabled for security reasons. When an attacker sends a xml requests it wants to parse and I get an error like:
Call to undefined function Slim\Http\simplexml_load_string() on /var/www/website/vendor/slim/slim/Slim/Http/Request.php at 230
I would like to choose what parsing is done from these 3 options.
Metadata
Metadata
Assignees
Labels
No labels