diff options
| author | 2025-06-22 00:09:18 +0200 | |
|---|---|---|
| committer | 2025-06-22 00:09:18 +0200 | |
| commit | 18b5c8ec6da64da90706643ffa52736a85a2ca59 (patch) | |
| tree | 0b7ac0082c0a0aa86c0f7a4caccb616011576023 /app/Models/Category.php | |
| parent | a6948218fb1c66fe146c7651555e5a1f791c8112 (diff) | |
Handle redirects when scraping feed from HTML (#7654)
* Handle redirects when scraping feed from HTML
* pass codesniffer
* pass PHPStan
* Optimize
* Another approach relying on HTML base
Standard way to save an HTML document with relative references
* Fix case of existing HTML base
which should not be overriden
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Models/Category.php')
| -rw-r--r-- | app/Models/Category.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/Category.php b/app/Models/Category.php index e883a99cf..554e002fb 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -188,7 +188,7 @@ class FreshRSS_Category extends Minz_Model { } $ok = true; $cachePath = $this->cacheFilename($url); - $opml = httpGet($url, $cachePath, 'opml', $this->attributes(), $this->curlOptions()); + $opml = httpGet($url, $cachePath, 'opml', $this->attributes(), $this->curlOptions())['body']; if ($opml == '') { Minz_Log::warning('Error getting dynamic OPML for category ' . $this->id() . '! ' . \SimplePie\Misc::url_remove_credentials($url)); |
