@@ 8775-8782 (lines=8) @@ | ||
8772 | { |
|
8773 | $rel = array_unique($this->registry->call('Misc', 'space_seperated_tokens', array(strtolower($link->getAttribute('rel'))))); |
|
8774 | $line = method_exists($link, 'getLineNo') ? $link->getLineNo() : 1; |
|
8775 | if ($this->base_location < $line) |
|
8776 | { |
|
8777 | $href = $this->registry->call('Misc', 'absolutize_url', array(trim($link->getAttribute('href')), $this->base)); |
|
8778 | } |
|
8779 | else |
|
8780 | { |
|
8781 | $href = $this->registry->call('Misc', 'absolutize_url', array(trim($link->getAttribute('href')), $this->http_base)); |
|
8782 | } |
|
8783 | if ($href === false) |
|
8784 | { |
|
8785 | continue; |
|
@@ 8819-8826 (lines=8) @@ | ||
8816 | $parsed = $this->registry->call('Misc', 'parse_url', array($href)); |
|
8817 | if ($parsed['scheme'] === '' || preg_match('/^(http(s)|feed)?$/i', $parsed['scheme'])) |
|
8818 | { |
|
8819 | if ($this->base_location < $link->getLineNo()) |
|
8820 | { |
|
8821 | $href = $this->registry->call('Misc', 'absolutize_url', array(trim($link->getAttribute('href')), $this->base)); |
|
8822 | } |
|
8823 | else |
|
8824 | { |
|
8825 | $href = $this->registry->call('Misc', 'absolutize_url', array(trim($link->getAttribute('href')), $this->http_base)); |
|
8826 | } |
|
8827 | if ($href === false) |
|
8828 | { |
|
8829 | continue; |