Open external links in a new tab/page

This commit is contained in:
Savetheinternet 2011-03-28 02:20:03 +11:00
parent 47d7117bb0
commit d919c49b2f

View File

@ -905,7 +905,7 @@
}
if($config['markup_urls']) {
$body = preg_replace($config['url_regex'], "<a href=\"$0\">$0</a>", $body, -1, $num_links);
$body = preg_replace($config['url_regex'], "<a target=\"_blank\" rel=\"nofollow\" href=\"$0\">$0</a>", $body, -1, $num_links);
if($num_links > $config['max_links'])
error($config['error']['toomanylinks']);
}