summaryrefslogtreecommitdiff
path: root/app/Controllers/subscriptionController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-06-30 23:16:27 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2015-06-30 23:16:27 +0200
commitdcadf0dfdfb8730abdfdee2bbf061b984d5ef6b4 (patch)
treef0e62bcb9cec23258f0918599fb04102f0eef407 /app/Controllers/subscriptionController.php
parent5cb3d017ab893f1e99df5cfd373e47df88f53960 (diff)
parent8a131b056ee3566c2b54466f650c26c143b7c369 (diff)
Merge pull request #881 from Alkarex/ForceAutocompleteOff
Force autocomplete off
Diffstat (limited to 'app/Controllers/subscriptionController.php')
-rw-r--r--app/Controllers/subscriptionController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controllers/subscriptionController.php b/app/Controllers/subscriptionController.php
index 333565faf..03d3ee15e 100644
--- a/app/Controllers/subscriptionController.php
+++ b/app/Controllers/subscriptionController.php
@@ -77,11 +77,11 @@ class FreshRSS_subscription_Controller extends Minz_ActionController {
Minz_View::prependTitle(_t('sub.title.feed_management') . ' · ' . $this->view->feed->name() . ' · ');
if (Minz_Request::isPost()) {
- $user = Minz_Request::param('http_user', '');
- $pass = Minz_Request::param('http_pass', '');
+ $user = trim(Minz_Request::param('http_user_feed' . $id, ''));
+ $pass = Minz_Request::param('http_pass_feed' . $id, '');
$httpAuth = '';
- if ($user != '' || $pass != '') {
+ if ($user != '' && $pass != '') { //TODO: Sanitize
$httpAuth = $user . ':' . $pass;
}