mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-17 06:51:15 +02:00
ComboiosDePortugalBridge: HACK: Encode the URL (#1074)
This seems like a weird bug somewhere. Either the HTML parser should return the valid page, or the CMS should not convert the URL first, or the URL validation regex is buggy.
This commit is contained in:
@@ -14,7 +14,7 @@ class ComboiosDePortugalBridge extends BridgeAbstract {
|
||||
$item = array();
|
||||
|
||||
$item['title'] = $element->innertext;
|
||||
$item['uri'] = self::BASE_URI . $element->href;
|
||||
$item['uri'] = self::BASE_URI . implode('/', array_map('urlencode', explode('/', $element->href)));
|
||||
|
||||
$this->items[] = $item;
|
||||
}
|
||||
|
Reference in New Issue
Block a user