Make WordPress Core


Ignore:
Timestamp:
05/26/2010 05:01:21 PM (14 years ago)
Author:
westi
Message:

Escape the guid urls when placing them in feeds and other xml locations. See #13555.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/feed-atom-comments.php

    r13978 r14947  
    7474    // Return comment threading information (http://www.ietf.org/rfc/rfc4685.txt)
    7575    if ( $comment->comment_parent == 0 ) : // This comment is top level ?>
    76         <thr:in-reply-to ref="<?php the_guid() ?>" href="<?php the_permalink_rss() ?>" type="<?php bloginfo_rss('html_type'); ?>" />
     76        <thr:in-reply-to ref="<?php esc_url( the_guid() ); ?>" href="<?php the_permalink_rss() ?>" type="<?php bloginfo_rss('html_type'); ?>" />
    7777<?php else : // This comment is in reply to another comment
    7878    $parent_comment = get_comment($comment->comment_parent);
Note: See TracChangeset for help on using the changeset viewer.