mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
fixes #55
This commit is contained in:
@@ -42,8 +42,7 @@ $result = $SQL->build($query);
|
|||||||
|
|
||||||
while($row=$SQL->fetch_array($result))
|
while($row=$SQL->fetch_array($result))
|
||||||
{
|
{
|
||||||
$rulesw = p('rules_text', 'str', $row['rules']);
|
$rules = p('rules_text', 'str', $row['rules']);
|
||||||
$rules = htmlspecialchars($rulesw);
|
|
||||||
|
|
||||||
//when submit
|
//when submit
|
||||||
if (ip('submit'))
|
if (ip('submit'))
|
||||||
@@ -51,7 +50,7 @@ while($row=$SQL->fetch_array($result))
|
|||||||
//update
|
//update
|
||||||
$update_query = array(
|
$update_query = array(
|
||||||
'UPDATE' => "{$dbprefix}stats",
|
'UPDATE' => "{$dbprefix}stats",
|
||||||
'SET' => "rules = '" . $SQL->real_escape($rulesw) . "'"
|
'SET' => "rules = '" . $SQL->real_escape(htmlspecialchars_decode($rules)) . "'"
|
||||||
);
|
);
|
||||||
|
|
||||||
$SQL->build($update_query);
|
$SQL->build($update_query);
|
||||||
|
|||||||
Reference in New Issue
Block a user