You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though XSS isn't really a threat when using the DOM, most user input probably wants to be put through something like strip_tags. Someone's username of <script>alert("pwned")</script> would be nice to clean up.
Register a callback function to filter all user input, or just particular keys.
Idea:
$this->input->filter([$myClass, $inputFilter->filter(...)]) to pass EVERY kvp through your callback. $this->input->filter([$myClass, $inputFilter->filter(...)], "name", "postcode") to only pass name and postcode kvps through your callback.
The text was updated successfully, but these errors were encountered:
Even though XSS isn't really a threat when using the DOM, most user input probably wants to be put through something like strip_tags. Someone's username of
<script>alert("pwned")</script>
would be nice to clean up.Register a callback function to filter all user input, or just particular keys.
Idea:
$this->input->filter([$myClass, $inputFilter->filter(...)])
to pass EVERY kvp through your callback.$this->input->filter([$myClass, $inputFilter->filter(...)], "name", "postcode")
to only pass name and postcode kvps through your callback.The text was updated successfully, but these errors were encountered: