PhpStorm tells me that FILTER_SANITIZE_MAGIC_QUOTES is deprecated. What filter should be used in its stead? I'm using it to sanitise data before it is used to create MariaDB queries.
Asked
Active
Viewed 16 times
0
-
1FILTER_SANITIZE_ADD_SLASHES reference: https://www.php.net/manual/pt_BR/migration74.deprecated.php – Julyano Felipe Nov 25 '19 at 15:23
-
2Neither should be used for that purpose. – mario Nov 25 '19 at 15:26
-
2Don't sanitize data going into the database. Use prepared statements. – Dharman Nov 25 '19 at 15:28
-
All the MAGIC thingies are hacks that give a false sense of security. We are better off without them. – Rick James Dec 01 '19 at 01:57