Top "Sanitization" questions

Data sanitization to prevent code injection

What is "enough sanitization" for a URL

The URL would be Saved to a MySQL database Used to display a picture on the user's profile would strip_…

php mysql sanitization
Modify input before validation on Laravel 5.1

I'm trying to modify an user submitted input before validation success. I've followed this easy instructions, but when I test …

php validation laravel-5 sanitization
How do I sanitize invalid UTF-8 in Perl?

My Perl program takes some text from a disk file as input, wraps it in some XML, then outputs it …

perl utf-8 sanitization
How to install, import and use DOMPurify in frontend js file?

This is more of a "can you please confirm this is correct" type of question, as I think I resolved …

javascript sanitization input-sanitization dompurify
How can I sanitize laravel Request inputs?

I have MyRequest.php class extending App\Http\Requests\Request. I want to trim() every input before validation because an …

php laravel forms request sanitization
Forming sanitary shell commands or system calls in Ruby

I'm building a daemon that will help me manage my server(s). Webmin works fine, as does just opening a …

ruby security shell system sanitization
How to allow specific characters with OWASP HTML Sanitizer?

I am using the OWASP Html Sanitizer to prevent XSS attacks on my web app. For many fields that should …

java security xss sanitization owasp
Data Sanitization in PHP

Can someone recommend an up to date library for data Sanitization in PHP ? I am looking for a library that …

php sanitization
angular-translate sanitisation fails with UTF characters

On Angular 1.3.x with latest version of angular-translate. Using $sanitize it seems there are problems when using filter or service …

javascript angularjs sanitization angular-translate
Do i need to sanitize input if using prepared PHP/MySQL queries?

Given the following piece of code, Do i need to escape and sanitize $city? <?php $mysqli = new mysqli("localhost", "…

php mysqli prepared-statement sanitization