Top "Sanitization" questions

Data sanitization to prevent code injection

Is sanitizing JSON necessary?

I think it's a well-known best practice on the web to mistrust any input. The sentence "All input is evil." …

javascript node.js json sanitization dompurify
Sanitize file path in PHP

Greetings, I'm hoping to make my tiny program secure so that potential malicious users cannot view sensitive files on the …

php security sanitization
MySQL real escape string

I was trying to sanitize inputs to my PHP login using addslashes and mysql_real_escape_string. Using addslashes works, …

php mysql sanitization mysql-real-escape-string apostrophe
Sanitizing HTML in submitted form data

Is there a generic "form sanitizer" that I can use to ensure all html/scripting is stripped off the submitted …

python django forms sanitization
Python Input Sanitization

I need to do some very quick-n-dirty input sanitizing and I would like to basically convert all <, > to &…

python forms validation input sanitization
Javascript XSS Prevention

There is a Node.js project that sanitizes data and there is an OWASP library for JavaScript that handles sanitization …

javascript security node.js xss sanitization
How can I sanitize a string for use as a filename?

I've got a routine that converts a file into a different format and saves it. The original datafiles were numbered, …

delphi validation filenames sanitization
PHP - HTML Purifier - hello w<o>rld/world tutorial striptags

I am just looking into using HTML Purifier to ensure that a user-inputed string (that represents the name of a …

php validation user-input sanitization
CSS and JQuery: spaces inside image name break code of url()

I have a page that is supposed to display a larger version of an image when hovered over a thumbnail. …

javascript jquery css sanitization
.NET libraries to sanitize input?

Are there any thoroughly tested .NET libraries out there to sanitize input from things like script/sql injection?

.net security sanitization