From 885a05be06d0b42835652208c729e5fded451c26 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 8 Feb 2023 22:42:21 +0100 Subject: Updated 9 files, added 2 files and deleted pages/bitset.inc (automated) --- pages/rules.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pages/rules.inc') diff --git a/pages/rules.inc b/pages/rules.inc index bf156f2..7257cf1 100644 --- a/pages/rules.inc +++ b/pages/rules.inc @@ -29,7 +29,7 @@ if (isset($_POST["updateRules"])) { $_POST["payload"][$index] = $rule; } - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/rules/rules.json", utf8_encode(json_encode($_POST["payload"]))); + file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/rules/rules.json", json_encode($_POST["payload"])); header("Location: /-/rules"); die(); @@ -60,7 +60,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';

- Rule : + Rule : ", ">", $rule["name"])) ?> Unapproved @@ -103,7 +103,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
-

text(strip_tags($rule["content"])) ?>

+

text(str_replace("<", "<", str_replace(">", ">", $rule["content"]))) ?>

@@ -132,9 +132,9 @@ require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/header.inc';
>

>Rule #:

- type="text" placeholder="Rule name" class="form-control" style="margin-bottom:15px;color:white;background:#111;border-color:#222;" name="payload[][name]" value=""> + type="text" placeholder="Rule name" class="form-control" style="margin-bottom:15px;color:white;background:#111;border-color:#222;" name="payload[][name]" value="", ">", $rule["name"]))) ?>"> - +