aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-11-11 08:17:12 +0100
committerGravatar GitHub <noreply@github.com> 2025-11-11 08:17:12 +0100
commita18c35046daee15e7ac5f85db290d54541a03e3c (patch)
treeec638cf7c93537a4f81b27216097d8509252eb81 /p
parent5e622c60fa5c40793138807280319f7e84d00cc6 (diff)
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
Diffstat (limited to 'p')
-rw-r--r--p/api/pshb.php4
1 files changed, 2 insertions, 2 deletions
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);
}