From 6ad95824d62d16ec1659b279877186b408bb1727 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 29 Nov 2017 16:19:34 +0000 Subject: [PATCH] Hardening: Ensure the attributes of enclosures are correctly escaped in RSS and Atom feeds. Merges [42260] to the 4.7 branch. Built from https://develop.svn.wordpress.org/branches/4.7@42274 git-svn-id: http://core.svn.wordpress.org/branches/4.7@42103 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index dbeb3a0f83..a92882f49d 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -476,7 +476,7 @@ function rss_enclosure() { * * @param string $html_link_tag The HTML link tag with a URI and other attributes. */ - echo apply_filters( 'rss_enclosure', '' . "\n" ); + echo apply_filters( 'rss_enclosure', '' . "\n" ); } } } @@ -510,7 +510,7 @@ function atom_enclosure() { * * @param string $html_link_tag The HTML link tag with a URI and other attributes. */ - echo apply_filters( 'atom_enclosure', '' . "\n" ); + echo apply_filters( 'atom_enclosure', '' . "\n" ); } } }