diff options
| author | 2022-10-21 15:11:52 +0200 | |
|---|---|---|
| committer | 2022-10-21 15:11:52 +0200 | |
| commit | e96b6266b592681e2c19d892d313779c96a7302a (patch) | |
| tree | 42b1991041f79ffd34203a96936da2fb515c082e /app/Models/Feed.php | |
| parent | 1f4e347cae51667e7cf5772aef55d274a39c8023 (diff) | |
Fix curlopt options for HTML+XPath (#4759)
Improvement of https://github.com/FreshRSS/FreshRSS/pull/4220
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php index 5efe55006..32b22edf2 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -589,10 +589,9 @@ class FreshRSS_Feed extends Minz_Model { } /** - * @param array<string,mixed> $attributes * @return SimplePie|null */ - public function loadHtmlXpath(bool $loadDetails = false, bool $noCache = false, array $attributes = []) { + public function loadHtmlXpath(bool $loadDetails = false, bool $noCache = false) { if ($this->url == '') { return null; } @@ -620,8 +619,8 @@ class FreshRSS_Feed extends Minz_Model { return null; } - $cachePath = FreshRSS_Feed::cacheFilename($feedSourceUrl, $attributes, FreshRSS_Feed::KIND_HTML_XPATH); - $html = httpGet($feedSourceUrl, $cachePath, 'html', $attributes); + $cachePath = FreshRSS_Feed::cacheFilename($feedSourceUrl, $this->attributes(), FreshRSS_Feed::KIND_HTML_XPATH); + $html = httpGet($feedSourceUrl, $cachePath, 'html', $this->attributes()); if (strlen($html) <= 0) { return null; } |
