Security Added some mysql escapes to some get vars in api and guest view invoice and quote

This commit is contained in:
johnny@pittpc.com
2019-08-28 21:54:27 -04:00
parent 0e451056b4
commit bbf8756882
3 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
if(isset($_GET['invoice_id'], $_GET['url_key'])){
$url_key = $_GET['url_key'];
$url_key = mysqli_real_escape_string($mysqli,$_GET['url_key']);
$invoice_id = intval($_GET['invoice_id']);
$sql = mysqli_query($mysqli,"SELECT * FROM invoices, clients