From 31e45a7aeb87e60ab1f6f6ad01b23d78387c6808 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 24 Oct 2013 18:51:59 +0000 Subject: [PATCH] Always escape URLs at the last possible moment. git-svn-id: https://develop.svn.wordpress.org/trunk@25895 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/pluggable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index d75908261e..95046d0437 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -1700,6 +1700,7 @@ function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) { if ( !empty( $rating ) ) $out .= "&r={$rating}"; + $out = esc_url( $out ); $avatar = "{$safe_alt}"; } else { $avatar = "{$safe_alt}";