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:
parent
2dc0c36e9b
commit
c9b0cd1315
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue