aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/subscriptionController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-08-29 12:16:20 +0200
committerGravatar GitHub <noreply@github.com> 2020-08-29 12:16:20 +0200
commit48345403df50860a342f53900599e75f5b5efb84 (patch)
tree3eecfaf4053b826e9906067eda0582e7c943f1c1 /app/Controllers/subscriptionController.php
parent20d0f9cd762ce09f392a103abcfe1d18e2c63654 (diff)
Trim whitespace for feed passwords (#3158)
We output a space by default in the user interface for setting feed passwords, in order to prevent aggressive password autocompletion https://github.com/FreshRSS/FreshRSS/pull/881 However, user might not always override this white space when entering the password. So here we trim. (I believe legitimate leading / trailing spaces in passwords are sufficiently rare not to be a problem)
Diffstat (limited to 'app/Controllers/subscriptionController.php')
-rw-r--r--app/Controllers/subscriptionController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Controllers/subscriptionController.php b/app/Controllers/subscriptionController.php
index 1be0fd376..6c03084c3 100644
--- a/app/Controllers/subscriptionController.php
+++ b/app/Controllers/subscriptionController.php
@@ -93,7 +93,7 @@ class FreshRSS_subscription_Controller extends Minz_ActionController {
if (Minz_Request::isPost()) {
$user = trim(Minz_Request::param('http_user_feed' . $id, ''));
- $pass = Minz_Request::param('http_pass_feed' . $id, '');
+ $pass = trim(Minz_Request::param('http_pass_feed' . $id, ''));
$httpAuth = '';
if ($user != '' && $pass != '') { //TODO: Sanitize