From 79585d54a14c4e3dc6d431a06159d478098ccdad Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 22 Jul 2024 13:21:55 +0700 Subject: [PATCH] remove filter FILTER_SANITIZE_SPECIAL_CHARS when save settings --- system/controllers/settings.php | 3 --- system/lan/english.json | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/system/controllers/settings.php b/system/controllers/settings.php index 70456892..8b3795bd 100644 --- a/system/controllers/settings.php +++ b/system/controllers/settings.php @@ -157,9 +157,6 @@ switch ($action) { } // Save all settings including tax system foreach ($_POST as $key => $value) { - $key = filter_var($key, FILTER_SANITIZE_SPECIAL_CHARS); - $value = filter_var($value, FILTER_SANITIZE_SPECIAL_CHARS); - $d = ORM::for_table('tbl_appconfig')->where('setting', $key)->find_one(); if ($d) { $d->value = $value; diff --git a/system/lan/english.json b/system/lan/english.json index 15efc70c..d37266f4 100644 --- a/system/lan/english.json +++ b/system/lan/english.json @@ -653,5 +653,7 @@ "Http_Chap": "Http-Chap", "Hotspot_Authentication_Method__Make_sure_you_have_changed_your_hotspot_login_page_": "Hotspot Authentication Method. Make sure you have changed your hotspot login page.", "Business": "Business", - "": "" + "": "", + "Source": "Source", + "Destination": "Destination" } \ No newline at end of file