[wp-trac] [WordPress Trac] #46922: Atom feeds should not have extra white space in date constructs

WordPress Trac noreply at wordpress.org
Sun Apr 14 12:18:59 UTC 2019


#46922: Atom feeds should not have extra white space in date constructs
--------------------------+-----------------------------
 Reporter:  josephwa      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 PThe Atom format's RFC [https://tools.ietf.org/html/rfc4287#section-3
 doesn't allow for white space in date elements]:

 > Note that there MUST NOT be any white space in a Date construct or in
 > any IRI.  Some XML-emitting implementations erroneously insert white
 > space around values by default, and such implementations will emit
 > invalid Atom Documents.

 However, this was introduced in #41057 when `feed-atom-comments.php` and
 `feed-atom.php` were rewritten.

 Specifically, by:

 {{{
 -       <updated><?php
 +       <updated>
 +       <?php
 }}}

 This would cause a strict consumer to reject feeds generated by 5.1.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46922>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list