Top "Sanitization" questions

Data sanitization to prevent code injection

Sanitizing strings to make them URL and filename safe?

I am trying to come up with a function that does a good job of sanitizing certain strings so that …

php url filenames sanitization
What are the best PHP input sanitizing functions?

I am trying to come up with a function that I can pass all my strings through to sanitize. So …

php filter sanitization
string sanitizer for filename

I'm looking for a php function that will sanitize a string and make it ready to use for a filename. …

php string sanitization
angularjs newline filter with no other html

I'm trying to convert newline characters (\n) to html br's. As per this discussion in the Google Group, here's what …

javascript html angularjs sanitization
Can I protect against SQL injection by escaping single-quote and surrounding user input with single-quotes?

I realize that parameterized SQL queries is the optimal way to sanitize user input when building queries that contain user …

sql security sql-server-2000 sql-injection sanitization
Sanitizing user's data in GET by PHP

How do you sanitize data in $_GET -variables by PHP? I sanitize only one variable in GET by strip_tags. …

php get sanitization
Dealing with line Breaks on contentEditable DIV

I have a problem with contenteditable line breaks on SAFARI/CHROME. When I press "return" on a contentEditable <div&…

jquery contenteditable sanitization
How do I convert a string into safe SQL String?

I'm generating some sql insert statements from a bunch of text files. These text files are generally user input data. …

.net sql sanitization
what is a good method to sanitize the whole $_POST array in php?

I have a form with a lot of variables which is then sending an email, rather than sanitizing each $_POST …

php arrays sanitization
function to sanitize input to Mysql database

I am trying to put a general purpose function together that will sanitize input to a Mysql database. So far …

php mysql sql-injection sanitization