use url::to

This commit is contained in:
Taylor Otwell 2012-04-02 11:08:47 -05:00
parent 3a0135a6d3
commit 21530751a5
1 changed files with 1 additions and 0 deletions

View File

@ -1445,6 +1445,7 @@ function doAutoLinks($text) {
}
function _doAutoLinks_url_callback($matches) {
$url = $this->encodeAttribute($matches[1]);
$url = Laravel\URL::to($url);
$link = "<a href=\"$url\">$url</a>";
return $this->hashPart($link);
}