fix for error with mailto links

This commit is contained in:
Karl Wiggisser 2017-01-21 12:32:36 +01:00
parent 97a4e73878
commit 7fe42a752a

View File

@ -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:";
}
/**