rafaelcaviquioli / php-clean-request
The purpose of this class is to clear all the input parameters in an HTTP request by avoiding the passage of SQL Injection made by bad intentioned people.
dev-master
2016-06-23 20:53 UTC
This package is not auto-updated.
Last update: 2025-06-21 23:10:44 UTC
README
The purpose of this class is to clear all the input parameters in an HTTP request by avoiding the passage of SQL Injection made by bad intentioned people.
Recommended for applications where old functions are still used such as `` `mysql_query``` where there is no automatic processing of sql injection
- Remove SQL injection
- Add caracter scape
Use PhpCleanRequest
<?php PhpCleanRequest::clean(); echo $_GET['id']; /* * Result: * 999999.9\' union all */ ?>
Not use PhpCleanRequest
<?php echo $_GET['id']; /* * Result: * 999999.9' union all select */ ?>