Merge pull request #435 from wiggisser/master
fix for error with mailto links
This commit is contained in:
commit
1a2d5c336b
@ -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…
Reference in New Issue
Block a user