Ticket #5238 (closed defect: fixed)

Opened 1 year ago

Last modified 9 months ago

Self links in feeds are incorrect for categories

Reported by: westi Assigned to: 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 (1.8 kB) - added by andy on 12/20/07 02:19:53.

Change History

12/20/07 02:19:53 changed by andy

  • attachment self-link.diff added.

12/20/07 02:20:26 changed by andy

  • keywords changed from needs-patch to has-patch.

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.

12/20/07 02:28:38 changed by andy

Tested on feedvalidator and found to work with

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

and

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

02/07/08 18:03:08 changed by ryan

  • owner changed from anonymous to westi.

03/11/08 18:18:23 changed by westi

  • status changed from new to closed.
  • resolution set to fixed.

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