From 19abe38f5afba0929fabd9de79e718ddc8b9298c Mon Sep 17 00:00:00 2001 From: markjaquith Date: Tue, 18 Nov 2008 08:24:17 +0000 Subject: [PATCH] Use clean_url() in self_link(), for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@9753 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 31486d8fe..dd1c39d6c 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -498,10 +498,12 @@ function prep_atom_text_construct($data) { * @since 2.5 */ function self_link() { - echo 'http' + echo clean_url( + 'http' . ( (isset($_SERVER['https']) && $_SERVER['https'] == 'on') ? 's' : '' ) . '://' . $_SERVER['HTTP_HOST'] - . wp_specialchars(stripslashes($_SERVER['REQUEST_URI']), 1); + . stripslashes($_SERVER['REQUEST_URI']) + ); } ?>