From a18c35046daee15e7ac5f85db290d54541a03e3c Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 11 Nov 2025 08:17:12 +0100 Subject: Housekeeping lib_rss.php (#8193) * Housekeeping lib_rss.php `lib_rss.php` had become much too large, especially after https://github.com/FreshRSS/FreshRSS/pull/7924 Moved most functions to other places. Mostly no change of code otherwise (see comments). * Extension: composer run-script phpstan-third-party --- p/api/pshb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'p/api') diff --git a/p/api/pshb.php b/p/api/pshb.php index 37b3fe056..5937f579b 100644 --- a/p/api/pshb.php +++ b/p/api/pshb.php @@ -98,7 +98,7 @@ if ($ORIGINAL_INPUT == '') { die('Missing XML payload!'); } -$simplePie = customSimplePie(); +$simplePie = new FreshRSS_SimplePieCustom(); $simplePie->enable_cache(false); $simplePie->set_raw_data($ORIGINAL_INPUT); $simplePie->init(); @@ -120,7 +120,7 @@ if ($httpLink !== '' && preg_match_all('/<([^>]+)>;\\s*rel="([^"]+)"/', $httpLin // // TODO: Support WebSub hub redirection // } if (!empty($links['self'])) { - $httpSelf = checkUrl($links['self']) ?: ''; + $httpSelf = FreshRSS_http_Util::checkUrl($links['self']) ?: ''; if ($self !== '' && $self !== $httpSelf) { Minz_Log::warning('Warning: Self URL mismatch between XML [' . $self . '] and HTTP!: ' . $httpSelf, PSHB_LOG); } -- cgit v1.2.3