mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
Security Added some mysql escapes to some get vars in api and guest view invoice and quote
This commit is contained in:
2
api.php
2
api.php
@@ -3,7 +3,7 @@
|
||||
<?php
|
||||
//Check Key
|
||||
if(isset($_GET['api_key'])){
|
||||
$config_api_key = $_GET['api_key'];
|
||||
$config_api_key = mysqli_real_escape_string($mysqli,$_GET['api_key']);
|
||||
|
||||
$sql = mysqli_query($mysqli,"SELECT * FROM settings, companies WHERE settings.company_id = companies.company_id AND settings.config_api_key = '$config_api_key'");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user