fix for error with mailto links
This commit is contained in:
parent
97a4e73878
commit
7fe42a752a
@ -65,7 +65,7 @@ class LinkRenderer extends \League\CommonMark\Inline\Renderer\LinkRenderer
|
||||
|
||||
protected function isExternalUrl($url)
|
||||
{
|
||||
return preg_match('|^(?:[a-z]+:)?//|', $url);
|
||||
return preg_match('|^(?:[a-z]+:)?//|', $url) || substr($url, 0, 7) == "mailto:";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user