A free, self-hostable news aggregator…
Trim whitespace for feed passwords (#3158)
Alexandre Alapetite48345403df50
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.phpindex c0843ffba..2fc0734db 100755--- a/app/Controllers/feedController.php+++ b/app/Controllers/feedController.php@@ -160,7 +160,7 @@ class FreshRSS_feed_Controller extends Minz_ActionController {// HTTP information are useful if feed is protected behind a// HTTP authentication$user = trim(Minz_Request::param('http_user', ''));- $pass = Minz_Request::param('http_pass', '');+ $pass = trim(Minz_Request::param('http_pass', ''));$http_auth = '';if ($user != '' && $pass != '') { //TODO: Sanitize$http_auth = $user . ':' . $pass;diff --git a/app/Controllers/subscriptionController.php b/app/Controllers/subscriptionController.phpindex 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