Commit 21530751 authored by Taylor Otwell's avatar Taylor Otwell

use url::to

parent 3a0135a6
...@@ -1445,6 +1445,7 @@ class Markdown_Parser { ...@@ -1445,6 +1445,7 @@ class Markdown_Parser {
} }
function _doAutoLinks_url_callback($matches) { function _doAutoLinks_url_callback($matches) {
$url = $this->encodeAttribute($matches[1]); $url = $this->encodeAttribute($matches[1]);
$url = Laravel\URL::to($url);
$link = "<a href=\"$url\">$url</a>"; $link = "<a href=\"$url\">$url</a>";
return $this->hashPart($link); return $this->hashPart($link);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment