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:
somini 2019-04-04 21:48:25 +01:00 committed by Teromene
parent 2dc0c36e9b
commit c9b0cd1315
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}