When displaying an rss feed, it's possible drupal_set_message() will be called. In my case, many times. And with some smart rss readers sharing cookies with browsers, this means a user could return to the site and see a whole slew of messages that have been waiting for them, since there rss reader checked the feed.

It would be nice if views_rss.module could display the messages in the feed, but I'm not expert enough in RSS to know how that would best be done. Instead, I followed the approach used here: http://drupal.org/node/9604. That is, I simply clean out the message queue after the feed has been rendered.

Patch attached. This work sponsored by Medem.com.

CommentFileSizeAuthor
rss_messages.diff1.06 KBDave Cohen

Comments

esmerel’s picture

Status: Needs review » Closed (won't fix)

At this time, only security fixes will be made to the 5.x version of Views.