Remove SQL-injection vulnerable code in this file that was previously fixed in inc_all_client.php

This commit is contained in:
Marcus Hill
2023-05-20 15:33:46 +01:00
parent c403380562
commit cea954008f
+4 -7
View File
@@ -1,13 +1,10 @@
<?php <?php
require_once("inc_all_client.php"); // Default Column Sort by Filter
$sb = "document_name";
$o = "ASC";
// Sort by require_once("inc_all_client.php");
if (!empty($_GET['sb'])) {
$sb = sanitizeInput($_GET['sb']);
} else {
$sb = "document_name";
}
// Search query SQL snippet // Search query SQL snippet
if (!empty($q)) { if (!empty($q)) {