Filter all user input to reduce the security impact of manipulated data
This commit is contained in:
@@ -10,8 +10,11 @@ include("path.php");
|
||||
require(BASE."include/incl.php");
|
||||
require(BASE."include/application.php");
|
||||
|
||||
$aClean = array(); //array of filtered user input
|
||||
|
||||
$aClean['q'] = makeSafe($_REQUEST['q']);
|
||||
|
||||
apidb_header("Search Results");
|
||||
perform_search_and_output_results($_REQUEST['q']);
|
||||
perform_search_and_output_results($aClean['q']);
|
||||
apidb_footer();
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user