From 1db80bb0088b2f0ff710dabdf9a15ceeb8ac3eab Mon Sep 17 00:00:00 2001 From: mikelittle Date: Sun, 5 Oct 2003 21:06:11 +0000 Subject: [PATCH] Added call to antispambot round comment email. git-svn-id: http://svn.automattic.com/wordpress/trunk@413 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- b2-include/b2template.functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/b2-include/b2template.functions.php b/b2-include/b2template.functions.php index 026160980f..113173e043 100644 --- a/b2-include/b2template.functions.php +++ b/b2-include/b2template.functions.php @@ -1211,7 +1211,7 @@ function comment_author_email() { function comment_author_link() { global $comment; $url = trim(stripslashes($comment->comment_author_url)); - $email = $comment->comment_author_email; + $email = stripslashes($comment->comment_author_email); $author = stripslashes($comment->comment_author); $url = str_replace('http://url', '', $url); @@ -1227,7 +1227,7 @@ function comment_author_link() { $url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url); echo $url; } else { - echo 'mailto:'.$email; + echo 'mailto:'.antispambot($email); } echo '" rel="external">' . $author . ''; }