From 2ca70c2ea3ffe379bfe0e591a7cf1631a73baac3 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Tue, 18 Nov 2008 08:26:00 +0000 Subject: [PATCH] Use clean_url() in self_link(), for 2.6.x git-svn-id: http://svn.automattic.com/wordpress/branches/2.6@9754 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/feed.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/feed.php b/wp-includes/feed.php index 11ff42bc23..bed6608d56 100644 --- a/wp-includes/feed.php +++ b/wp-includes/feed.php @@ -495,10 +495,12 @@ function prep_atom_text_construct($data) { * @since 2.5 */ function self_link() { - echo 'http' - . ( $_SERVER['https'] == 'on' ? 's' : '' ) . '://' + 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']) + ); } ?> \ No newline at end of file