Top "Input-sanitization" questions

How to escape strings in SQL Server using PHP?

I'm looking for the alternative of mysql_real_escape_string() for SQL Server. Is addslashes() my best option or there …

php sql-server escaping input-sanitization
How can I protect against SQL injection attacks using Perl's DBI?

Is there a function i can use in Perl to sanitize input before putting it into a MySQL db? I …

mysql perl input-sanitization
Input sanitization in ReactJS

I am using ReactJS do develop a simple chat application. Could someone help me to sanitize the input . There is …

reactjs xss sanitization input-sanitization
Sanitizing a Date

I am using a javascript date picker that allows the user to select a date. However, I would like to …

php sanitization input-sanitization
how sanitize input codeigniter 3?

First of all I should remind you that I have read this post and few other posts about my question …

php codeigniter security input input-sanitization
How to use JSON Sanitizer at Server Side?

I want to implement the 'JSON Sanitizer' validation as mentioned by OWASP. My understanding is that this needs to be …

json owasp input-sanitization jsonexception
Is it safe to call json_decode on user input?

I'm storing a JSON encoded array of integer indexes => integer values in a cookie. Obviously cookies can be easily …

php input-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
filter_input() $_SERVER["REQUEST_URI"] with FILTER_SANITIZE_URL

I'm filtering $_SERVER["REQUEST_URI"] such that: $_request_uri = filter_input(INPUT_SERVER, 'REQUEST_URI', FILTER_SANITIZE_URL); As explained …

php global-variables filtering input-sanitization request-uri
Escape % symbol in a java string to apply String.format

In my project (Java/Play framework) I have an error handling routing that checks the response from a web service …

java string string.format input-sanitization