From ed0c3285478d160b856dfe46c3b78bb094acc458 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Wed, 29 Nov 2017 16:23:06 +0000 Subject: [PATCH] Hardening: Ensure the attributes of enclosures are correctly escaped in RSS and Atom feeds. Merges [42260] to the 4.6 branch. Built from https://develop.svn.wordpress.org/branches/4.6@42278 git-svn-id: http://core.svn.wordpress.org/branches/4.6@42107 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 f673e91d8b..d0ccdd75da 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" ); } } }