diff options
author | 2025-01-03 08:41:55 +0100 | |
---|---|---|
committer | 2025-01-03 08:41:55 +0100 | |
commit | f9e9c8101e770126c151d98356de689279f64a9a (patch) | |
tree | fe8421501554ef1fc4d0c985af68fc7f54cadf43 | |
parent | 97f7df0d06b740db246539c854bcc7611f74f3c1 (diff) | |
download | rss-bridge-f9e9c8101e770126c151d98356de689279f64a9a.tar.gz rss-bridge-f9e9c8101e770126c151d98356de689279f64a9a.tar.zst rss-bridge-f9e9c8101e770126c151d98356de689279f64a9a.zip |
Fix 257 (#4393)
* fix(tldrtech): trim duplicate leading slashes
* fix
-rw-r--r-- | bridges/TldrTechBridge.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bridges/TldrTechBridge.php b/bridges/TldrTechBridge.php index 6c96dff7..222cd49e 100644 --- a/bridges/TldrTechBridge.php +++ b/bridges/TldrTechBridge.php @@ -56,7 +56,8 @@ class TldrTechBridge extends BridgeAbstract if ($child->tag != 'a') { continue; } - $this->extractItem(Url::fromString(self::URI . $child->href)); + $itemUrl = Url::fromString(self::URI . ltrim($child->href, '/')); + $this->extractItem($itemUrl); if (count($this->items) >= $limit) { break; } |