Skip to content

Commit

Permalink
ComboiosDePortugalBridge: HACK: Encode the URL (RSS-Bridge#1074)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
somini authored and teromene committed Apr 4, 2019
1 parent 7402d5d commit 61555a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/ComboiosDePortugalBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function collectData() {
$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;
}
Expand Down

0 comments on commit 61555a6

Please sign in to comment.