mirror of https://github.com/itflow-org/itflow
Remove SQL-injection vulnerable code in this file that was previously fixed in inc_all_client.php
This commit is contained in:
parent
c403380562
commit
cea954008f
|
|
@ -1,14 +1,11 @@
|
|||
<?php
|
||||
<?php
|
||||
|
||||
// Default Column Sort by Filter
|
||||
$sb = "document_name";
|
||||
$o = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
|
||||
// Sort by
|
||||
if (!empty($_GET['sb'])) {
|
||||
$sb = sanitizeInput($_GET['sb']);
|
||||
} else {
|
||||
$sb = "document_name";
|
||||
}
|
||||
|
||||
// Search query SQL snippet
|
||||
if (!empty($q)) {
|
||||
$query_snippet = "AND (MATCH(document_content_raw) AGAINST ('$q') OR document_name LIKE '%$q%')";
|
||||
|
|
|
|||
Loading…
Reference in New Issue