Merge pull request #435 from wiggisser/master

fix for error with mailto links
This commit is contained in:
Stéphane Goetz 2017-01-23 23:26:11 +01:00 committed by GitHub
commit 1a2d5c336b

View File

@ -65,7 +65,7 @@ class LinkRenderer extends \League\CommonMark\Inline\Renderer\LinkRenderer
protected function isExternalUrl($url) protected function isExternalUrl($url)
{ {
return preg_match('|^(?:[a-z]+:)?//|', $url); return preg_match('|^(?:[a-z]+:)?//|', $url) || substr($url, 0, 7) == "mailto:";
} }
/** /**