Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 19 years ago

#5446 closed defect (bug) (fixed)

Return error when requesting invalid feed format

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

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 19 years ago.
New patch, translatable and escaped text

Download all attachments as: .zip

Change History (6)

#1 @pishmishy
19 years ago

  • Status new → assigned

#2 @pishmishy
19 years ago

Revised patch using feedback from #5445

#3 @ryan
19 years ago

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

@pishmishy
19 years ago

New patch, translatable and escaped text

#4 @ryan
19 years ago

  • Resolution → fixed
  • Status assigned → closed

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

#5 @ryan
19 years ago

  • Milestone 2.6 → 2.5
Note: See TracTickets for help on using tickets.