aboutsummaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-07-08 11:29:05 +0200
committerGravatar GitHub <noreply@github.com> 2018-07-08 11:29:05 +0200
commit99dfdbc10d9daa8059fd6c017b1580ad493aa8f6 (patch)
treee3070af9257aa22ee3ee1965ee51f227dc102692 /app/Models
parent82ac9454ddf337b79b41fedae37eaf15e6e0cb12 (diff)
Avoid feed credentials in logs (#1949)
* Avoid feed credentials in logs Related to https://github.com/FreshRSS/FreshRSS/pull/1891 * Changelog 1949
Diffstat (limited to 'app/Models')
-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 89eb0a53c..0b5647261 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -59,8 +59,8 @@ class FreshRSS_Feed extends Minz_Model {
return $this->hash;
}
- public function url() {
- return $this->url;
+ public function url($includeCredentials = true) {
+ return $includeCredentials ? $this->url : SimplePie_Misc::url_remove_credentials($this->url);
}
public function selfUrl() {
return $this->selfUrl;