Ticket #5238 (closed defect (bug): fixed)

Opened 4 years ago

Last modified 4 years ago

Self links in feeds are incorrect for categories

Reported by: westi Owned by: westi
Priority: high Milestone: 2.5
Component: Template Version: 2.3
Severity: normal Keywords: has-patch
Cc:

Description

Raised from #5205

We use bloginfo('atom_url') and bloginfo('rss_url') to build the self links but these return the links to the main atom and rss urls the underlying function called (get_feed_link) needs to be used instead and made category aware.

Attachments

self-link.diff Download (1.8 KB) - added by andy 4 years ago.

Change History

andy4 years ago

comment:1   andy4 years ago

  • Keywords has-patch added; needs-patch removed

This is also a problem for query-string feeds. I believe the self link should be built from the document location (http_host+request_uri) with wp_specialchars for XSS. Patch attached.

comment:2   andy4 years ago

Tested on feedvalidator and found to work with

http://skeltoac.com/2007/feed/

and

http://skeltoac.com/feed/?aoeu=1&qjk=aoeu+aoe

comment:3   ryan4 years ago

  • Owner changed from anonymous to westi
  • Status changed from new to closed
  • Resolution set to fixed

(In [7244]) Better self links for feeds. Fixes #5238 props andy.

Note: See TracTickets for help on using tickets.