mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Fix SQL injection in admin_reports.php
This commit is contained in:
parent
0a82152b97
commit
3c70b55ae3
@ -41,9 +41,9 @@ if (!empty($_POST)) {
|
||||
$customPoints = getValue($_POST['customPoints']);
|
||||
$reportId = getValue($_POST['id']);
|
||||
|
||||
$changelogReportId = &$_POST['changelogReportId'];
|
||||
$changelogReportId = (int)$_POST['changelogReportId'];
|
||||
$changelogValue = &$_POST['changelogValue'];
|
||||
$changelogText = &$_POST['changelogText'];
|
||||
$changelogText = getValue($_POST['changelogText']);
|
||||
$changelogStatus = ($changelogReportId !== false && $changelogValue === '2' && $changelogText !== false) ? true : false;
|
||||
|
||||
if ($customPoints !== false) $price = (int)($price + $customPoints);
|
||||
|
Loading…
x
Reference in New Issue
Block a user