Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
clean_input on Security class : why not for DELETE and PUT data ?
  • Why not using it on DELETE and PUT data while calling Security::clean_input() ? It could be useful for REST API to have a lighter weight code
    (yes, I'm a lazy worker, and so what ?)
  • Currently there is no easy and standard way to extract PUT and DELETE data, you will have to fetch and parse the raw http input data. The way you parse it is application specific, so it's up to your app to do that, and then to call Security::clean() to clean the array containing the parsed result.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion