From 469a42d9c3dedaf2817ba6ffec2f0945f83e63c0 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 15 Sep 2024 12:00:46 +0200 Subject: Rename param specialchars to plaintext (#6809) https://github.com/FreshRSS/FreshRSS/pull/6800#discussion_r1756435762 --- app/Controllers/authController.php | 4 ++-- app/Controllers/configureController.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/Controllers') diff --git a/app/Controllers/authController.php b/app/Controllers/authController.php index e97f09bc2..ed021505d 100644 --- a/app/Controllers/authController.php +++ b/app/Controllers/authController.php @@ -187,8 +187,8 @@ class FreshRSS_auth_Controller extends FreshRSS_ActionController { Minz_Request::forward(['c' => 'auth', 'a' => 'login'], false); } } elseif (FreshRSS_Context::systemConf()->unsafe_autologin_enabled) { - $username = Minz_Request::paramString('u', specialchars: true); - $password = Minz_Request::paramString('p', specialchars: true); + $username = Minz_Request::paramString('u', plaintext: true); + $password = Minz_Request::paramString('p', plaintext: true); Minz_Request::_param('p'); if ($username === '') { diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 612129b8a..cc31430b0 100644 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -202,7 +202,7 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { $this->view->list_keys = SHORTCUT_KEYS; if (Minz_Request::isPost()) { - $shortcuts = Minz_Request::paramArray('shortcuts', specialchars: true); + $shortcuts = Minz_Request::paramArray('shortcuts', plaintext: true); if (Minz_Request::paramBoolean('load_default_shortcuts')) { $default = Minz_Configuration::load(FRESHRSS_PATH . '/config-user.default.php'); $shortcuts = $default['shortcuts']; -- cgit v1.2.3