Monday 18 December 2017

xss - Sanitising user input using Python

What is the best way to sanitize user input for a
Python-based web application? Is there a single function to remove HTML characters and
any other necessary characters combinations to prevent an href="http://en.wikipedia.org/wiki/Cross-site_scripting"
rel="noreferrer">XSS or SQL injection attack?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...