Added call to antispambot round comment email.

git-svn-id: http://svn.automattic.com/wordpress/trunk@413 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-10-05 21:06:11 +00:00
parent 42d87177de
commit 1db80bb008
1 changed files with 2 additions and 2 deletions

View File

@ -1211,7 +1211,7 @@ function comment_author_email() {
function comment_author_link() { function comment_author_link() {
global $comment; global $comment;
$url = trim(stripslashes($comment->comment_author_url)); $url = trim(stripslashes($comment->comment_author_url));
$email = $comment->comment_author_email; $email = stripslashes($comment->comment_author_email);
$author = stripslashes($comment->comment_author); $author = stripslashes($comment->comment_author);
$url = str_replace('http://url', '', $url); $url = str_replace('http://url', '', $url);
@ -1227,7 +1227,7 @@ function comment_author_link() {
$url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url); $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url);
echo $url; echo $url;
} else { } else {
echo 'mailto:'.$email; echo 'mailto:'.antispambot($email);
} }
echo '" rel="external">' . $author . '</a>'; echo '" rel="external">' . $author . '</a>';
} }