aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-07-07 10:54:28 +0200
committerGravatar GitHub <noreply@github.com> 2020-07-07 10:54:28 +0200
commit3f9518b377c88ec4ce8fe538975f26b361e3dd65 (patch)
tree6b37f1b79c236619d1b076cf47fae47245835dd9 /app/Models/Feed.php
parentcbcbd64acf4663f9f7edd7a7d6f136473cffe7b9 (diff)
Hide feed credentials when adding a new feed (#3099)
Avoid showing HTTP Basic Auth credentials in feed error log and in feed title (when there is no title provided)
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index 2974b8eb9..a681345d4 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -287,7 +287,7 @@ class FreshRSS_Feed extends Minz_Model {
if ((!$mtime) || $simplePie->error()) {
$errorMessage = $simplePie->error();
throw new FreshRSS_Feed_Exception(
- ($errorMessage == '' ? 'Unknown error for feed' : $errorMessage) . ' [' . $url . ']'
+ ($errorMessage == '' ? 'Unknown error for feed' : $errorMessage) . ' [' . $this->url . ']'
);
}
@@ -302,7 +302,7 @@ class FreshRSS_Feed extends Minz_Model {
//HTML to HTML-PRE //ENT_COMPAT except '&'
$title = strtr(html_only_entity_decode($simplePie->get_title()), array('<' => '&lt;', '>' => '&gt;', '"' => '&quot;'));
- $this->_name($title == '' ? $url : $title);
+ $this->_name($title == '' ? $this->url : $title);
$this->_website(html_only_entity_decode($simplePie->get_link()));
$this->_description(html_only_entity_decode($simplePie->get_description()));