Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5446 closed defect (bug) (fixed)

Return error when requesting invalid feed format

Reported by: pishmishy's profile pishmishy Owned by: pishmishy's profile pishmishy
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.3.1
Component: General Keywords: has-patch feeds
Focuses: Cc:

Description

Requesting an invalid feed format (say http://www.myblog.com/?feed=foo) results in a blank page. This is due to do_feed() in functions.php calling hooked actions without any feedback on whether the appropriate action actually exists. Depends on #5445.

Attachments (1)

5446.patch (513 bytes) - added by pishmishy 17 years ago.
New patch, translatable and escaped text

Download all attachments as: .zip

Change History (6)

#1 @pishmishy
17 years ago

  • Status changed from new to assigned

#2 @pishmishy
17 years ago

Revised patch using feedback from #5445

#3 @ryan
17 years ago

$feed needs to be escaped to avoid XSS. The message also need to be marked for translation.

@pishmishy
17 years ago

New patch, translatable and escaped text

#4 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [7038]) Return error when requesting invalid feed format. Props pishmishy. fixes #5446

#5 @ryan
17 years ago

  • Milestone changed from 2.6 to 2.5
Note: See TracTickets for help on using tickets.