Why is filter_input() incomplete?

后端 未结 3 1442
半阙折子戏
半阙折子戏 2021-01-02 01:18

I am working a lot on a PHP-based CMS at the moment, and while I\'m at it I would like to move all the handling and sanitation of user input to one central place. (At the mo

3条回答
  •  感动是毒
    2021-01-02 01:41

    "input filtering" or "sanitation" is an absurd idea. Stay away from it.

    Explanations and further discussion

    What's the best method for sanitizing user input with PHP?

    What else should I be doing to sanitize user input?

提交回复
热议问题