mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-19 19:41:29 +02:00
Fixed relative link compatibility for php 5.3
Moved the parse_url outside the if check for compatibility.
This commit is contained in:
parent
b9daaa2fed
commit
71213e851d
@ -1169,7 +1169,8 @@ class Parsedown
|
||||
}
|
||||
|
||||
$url = $Link['element']['attributes']['href'];
|
||||
if (isset($this->relativePath) && !isset(parse_url($url)['host']))
|
||||
$hostURL = parse_url($url);
|
||||
if (isset($this->relativePath) && !isset($hostURL['host']))
|
||||
{
|
||||
$url = $this->relativePath . $url;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user