diff --git a/wp-includes/template-functions-comment.php b/wp-includes/template-functions-comment.php index 5f9e84ddc..739bb3f17 100644 --- a/wp-includes/template-functions-comment.php +++ b/wp-includes/template-functions-comment.php @@ -106,7 +106,7 @@ function comment_author_link() { } $url = str_replace('http://url', '', $url); - $url = preg_replace('|[^a-z0-9-_.?#=&;,/:]|i', '', $url); + $url = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $url); if (empty($url) && empty($email)) { echo $author; return;