Regular Expressions 101

Community Patterns

SQL query sanitizer

0

Regular Expression
PCRE (PHP <7.3)

Description

Very simple sanitizer. Will escape quotation marks, backslashes and apostrophes ("') in order reduce the risk of SQL injections. Please note that SQL versons that supports URL or other kinds of encoding may still be vanurable.

Submitted by anonymous - 7 years ago