Make WordPress Core


Ignore:
Timestamp:
05/26/2010 05:01:21 PM (15 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.php

    r13113 r14947  
    3737        <title type="<?php html_type_rss(); ?>"><![CDATA[<?php the_title_rss() ?>]]></title>
    3838        <link rel="alternate" type="text/html" href="<?php the_permalink_rss() ?>" />
    39         <id><?php the_guid(); ?></id>
     39        <id><?php esc_url( the_guid() ); ?></id>
    4040        <updated><?php echo get_post_modified_time('Y-m-d\TH:i:s\Z', true); ?></updated>
    4141        <published><?php echo get_post_time('Y-m-d\TH:i:s\Z', true); ?></published>
Note: See TracChangeset for help on using the changeset viewer.