From b54183ae4cbeb9106822224e1ee6e29feca00cc1 Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 26 May 2010 17:01:21 +0000 Subject: [PATCH] Escape the guid urls when placing them in feeds and other xml locations. See #13555. git-svn-id: http://svn.automattic.com/wordpress/trunk@14947 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/export.php | 2 +- wp-app.php | 4 ++-- wp-includes/feed-atom-comments.php | 2 +- wp-includes/feed-atom.php | 2 +- wp-includes/feed-rss2.php | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index 8cf406459f..345eed2056 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -347,7 +347,7 @@ function export_wp( $args = array() ) { - + post_content ) ); ?> post_excerpt ) ); ?> diff --git a/wp-app.php b/wp-app.php index 693c573b67..d5eee74f34 100644 --- a/wp-app.php +++ b/wp-app.php @@ -1150,7 +1150,7 @@ EOD; function echo_entry() { ?> - ID); ?> + ID ) ); ?> <?php echo $content ?> @@ -1167,7 +1167,7 @@ EOD; post_type == 'attachment') { ?> - + post_content ) ) : diff --git a/wp-includes/feed-atom-comments.php b/wp-includes/feed-atom-comments.php index 469972ba11..5c665d54e4 100644 --- a/wp-includes/feed-atom-comments.php +++ b/wp-includes/feed-atom-comments.php @@ -73,7 +73,7 @@ if ( have_comments() ) : while ( have_comments() ) : the_comment(); comment_parent == 0 ) : // This comment is top level ?> - + comment_parent); // The rel attribute below and the id tag above should be GUIDs, but WP doesn't create them for comments (unlike posts). Either way, its more important that they both use the same system diff --git a/wp-includes/feed-atom.php b/wp-includes/feed-atom.php index cce1cbfb77..fa53358daa 100644 --- a/wp-includes/feed-atom.php +++ b/wp-includes/feed-atom.php @@ -36,7 +36,7 @@ echo ''; ?> <![CDATA[<?php the_title_rss() ?>]]> - + diff --git a/wp-includes/feed-rss2.php b/wp-includes/feed-rss2.php index e97ddd5b98..3ee707e580 100644 --- a/wp-includes/feed-rss2.php +++ b/wp-includes/feed-rss2.php @@ -39,7 +39,7 @@ echo ''; ?> - + ]]>