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 gecommit door GitHub
bovenliggende 97a4e73878 7fe42a752a
commit 1a2d5c336b

Bestand weergeven

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