Browse Source

Merge pull request #1137 from Alkarex/feed_password

But when adding feeds with passwords
Alexandre Alapetite 10 years ago
parent
commit
5bb45c2e2c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Controllers/feedController.php

+ 2 - 1
app/Controllers/feedController.php

@@ -114,6 +114,8 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
 				Minz_Request::bad(_t('feedback.sub.feed.invalid_url', $url), $url_redirect);
 			}
 
+			$feed->_httpAuth($http_auth);
+
 			try {
 				$feed->load(true);
 			} catch (FreshRSS_Feed_Exception $e) {
@@ -140,7 +142,6 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
 			}
 
 			$feed->_category($cat);
-			$feed->_httpAuth($http_auth);
 
 			// Call the extension hook
 			$name = $feed->name();