mirror of
https://github.com/itflow-org/itflow
synced 2026-03-07 22:34:52 +00:00
Added more mysql escapes to more get vars
This commit is contained in:
@@ -9,7 +9,7 @@ require_once $mpdf_path . '/vendor/autoload.php';
|
|||||||
if(isset($_GET['pdf_invoice'], $_GET['url_key'])){
|
if(isset($_GET['pdf_invoice'], $_GET['url_key'])){
|
||||||
|
|
||||||
$invoice_id = intval($_GET['pdf_invoice']);
|
$invoice_id = intval($_GET['pdf_invoice']);
|
||||||
$url_key = $_GET['url_key'];
|
$url_key = mysqli_real_escape_string($mysqli,$_GET['url_key']);
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli,"SELECT * FROM invoices, clients
|
$sql = mysqli_query($mysqli,"SELECT * FROM invoices, clients
|
||||||
WHERE invoices.client_id = clients.client_id
|
WHERE invoices.client_id = clients.client_id
|
||||||
@@ -231,7 +231,7 @@ if(isset($_GET['pdf_invoice'], $_GET['url_key'])){
|
|||||||
if(isset($_GET['pdf_quote'], $_GET['url_key'])){
|
if(isset($_GET['pdf_quote'], $_GET['url_key'])){
|
||||||
|
|
||||||
$quote_id = intval($_GET['pdf_quote']);
|
$quote_id = intval($_GET['pdf_quote']);
|
||||||
$url_key = $_GET['url_key'];
|
$url_key = mysqli_real_escape_string($mysqli,$_GET['url_key']);
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli,"SELECT * FROM quotes, clients
|
$sql = mysqli_query($mysqli,"SELECT * FROM quotes, clients
|
||||||
WHERE quotes.client_id = clients.client_id
|
WHERE quotes.client_id = clients.client_id
|
||||||
@@ -428,7 +428,7 @@ if(isset($_GET['pdf_quote'], $_GET['url_key'])){
|
|||||||
if(isset($_GET['approve_quote'], $_GET['url_key'])){
|
if(isset($_GET['approve_quote'], $_GET['url_key'])){
|
||||||
|
|
||||||
$quote_id = intval($_GET['approve_quote']);
|
$quote_id = intval($_GET['approve_quote']);
|
||||||
$url_key = $_GET['url_key'];
|
$url_key = mysqli_real_escape_string($mysqli,$_GET['url_key']);
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli,"SELECT * FROM quotes
|
$sql = mysqli_query($mysqli,"SELECT * FROM quotes
|
||||||
WHERE quotes.quote_id = $quote_id
|
WHERE quotes.quote_id = $quote_id
|
||||||
@@ -453,7 +453,7 @@ if(isset($_GET['approve_quote'], $_GET['url_key'])){
|
|||||||
if(isset($_GET['reject_quote'], $_GET['url_key'])){
|
if(isset($_GET['reject_quote'], $_GET['url_key'])){
|
||||||
|
|
||||||
$quote_id = intval($_GET['reject_quote']);
|
$quote_id = intval($_GET['reject_quote']);
|
||||||
$url_key = $_GET['url_key'];
|
$url_key = mysqli_real_escape_string($mysqli,$_GET['url_key']);
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli,"SELECT * FROM quotes
|
$sql = mysqli_query($mysqli,"SELECT * FROM quotes
|
||||||
WHERE quotes.quote_id = $quote_id
|
WHERE quotes.quote_id = $quote_id
|
||||||
|
|||||||
Reference in New Issue
Block a user