Skip to content

rafaelcaviquioli/php-clean-request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PhpCleanRequest

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
*/
?>

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages