Fix malformed URLs (#1222)
Removes 'self::URI' from processUpload() which was creating malformed URLs. Relative URLs are handled by defaultLinkTo() making 'self::URI' unnecessary.
This commit is contained in:
parent
75edc1b2b7
commit
be27bc9250
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ class InternetArchiveBridge extends BridgeAbstract {
|
||||||
|
|
||||||
$item['title'] = trim($result->find('div.ttl', 0)->innertext);
|
$item['title'] = trim($result->find('div.ttl', 0)->innertext);
|
||||||
$item['timestamp'] = strtotime($result->find('div.hidden-tiles.pubdate.C.C3', 0)->children(0)->plaintext);
|
$item['timestamp'] = strtotime($result->find('div.hidden-tiles.pubdate.C.C3', 0)->children(0)->plaintext);
|
||||||
$item['uri'] = self::URI . $result->find('div.item-ttl.C.C2 > a', 0)->href;
|
$item['uri'] = $result->find('div.item-ttl.C.C2 > a', 0)->href;
|
||||||
|
|
||||||
if ($result->find('div.by.C.C4', 0)->children(2)) {
|
if ($result->find('div.by.C.C4', 0)->children(2)) {
|
||||||
$item['author'] = $result->find('div.by.C.C4', 0)->children(2)->plaintext;
|
$item['author'] = $result->find('div.by.C.C4', 0)->children(2)->plaintext;
|
||||||
|
|
Loading…
Reference in a new issue