You can try replace in includes/functions.php: $text = str_replace("\\'", "'", $text);
return replace_badwords($text);
}
With this code: $text = preg_replace("#(<a href=(\"|')(.*)://(.*)(\"|')(.*)>(.*)</a>)#siUe", "nofollow(\"\\1\",'\\4')", $text);
$text = str_replace("\\'", "'", $text);
return replace_badwords($text);
}
function nofollow($text, $url)
{
$url = str_replace("\\", "/", $url);
$url = strtolower(substr($url,0,(strlen($url)-strlen(strrchr($url,"/")))));
if ($url == $_SERVER['SERVER_NAME'] || $url == $_SERVER['SERVER_ADDR']) return $text;
$text = preg_replace("#<a href=(\"|')(.*)://(.*)(\"|')(.*)>(.*)</a>#iU", "<a href=\\1\\2://\\3\\4\\5 rel=\"nofollow\">\\6</a>", $text);
return $text;
}
Its quiet dirty fix, and it affects all links that being sent through format_text() function (not only comments)