diff options
| author | 2015-06-14 16:23:00 +0200 | |
|---|---|---|
| committer | 2015-06-14 16:23:00 +0200 | |
| commit | 1cf3a98c6b5b163d3fe80caecaaeb87c27d0009d (patch) | |
| tree | 2958363e0d87700e408072d6d807a687e9959846 /app/Controllers/feedController.php | |
| parent | cd83002f430d573fc3757de3f4204d911bcb7183 (diff) | |
| parent | 8a131b056ee3566c2b54466f650c26c143b7c369 (diff) | |
Merge remote-tracking branch 'origin/ForceAutocompleteOff' into dev
Diffstat (limited to 'app/Controllers/feedController.php')
| -rwxr-xr-x | app/Controllers/feedController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 957a809cd..b91f63b5b 100755 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -98,10 +98,10 @@ class FreshRSS_feed_Controller extends Minz_ActionController { // HTTP information are useful if feed is protected behind a // HTTP authentication - $user = Minz_Request::param('http_user'); - $pass = Minz_Request::param('http_pass'); + $user = trim(Minz_Request::param('http_user', '')); + $pass = Minz_Request::param('http_pass', ''); $http_auth = ''; - if ($user != '' || $pass != '') { + if ($user != '' && $pass != '') { //TODO: Sanitize $http_auth = $user . ':' . $pass; } |
