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