diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-28 02:20:03 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-03-28 02:20:03 +1100 |
| commit | d919c49b2f8681d5a23dfd7880fe18fa71f61705 (patch) | |
| tree | 0df5f02eac04b96f85deb11c1f938364b8abebd9 /inc/functions.php | |
| parent | 47d7117bb0b8b9600b526a748c2260c4505e2b5d (diff) | |
Open external links in a new tab/page
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.php b/inc/functions.php index c8877b59..a00d62d7 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -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']); } |
