Merge pull request #435 from wiggisser/master
fix for error with mailto links
Cette révision appartient à :
révision
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:";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user