mirror of
https://github.com/getgrav/grav.git
synced 2026-01-30 03:10:06 +01:00
Corrected HTML output of links with empty HTML anchors
This commit is contained in:
@@ -227,7 +227,7 @@ trait ParsedownGravTrait
|
||||
$url = parse_url(htmlspecialchars_decode($excerpt['element']['attributes']['href']));
|
||||
|
||||
// if there is no scheme, the file is local
|
||||
if (!isset($url['scheme'])) {
|
||||
if (!isset($url['scheme']) and (count($url) > 0)) {
|
||||
// convert the URl is required
|
||||
$excerpt['element']['attributes']['href'] = $this->convertUrl(Uri::buildUrl($url));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user