Is preg_match safe enaught in input satinization?
- by DaNieL
Im building a new web-app, LAMP environment... im wondering if preg_match can be trusted for user's input validation (+ prepared stmt, of course) for all the text-based fields (aka not html fields; phone, name, surname, etc..).
For example, for a classic 'email field', if i check the input like:
$email_pattern =…