Page 1 of 1

Recent Entries plugin displays titles incorrectly

Posted: Sat Sep 19, 2009 10:03 pm
by Anson
How to see the problem: create an entry with a title that uses some character that htmlspecialchars() would escape (a double quote works, a left angle bracket works, etc.). Look at that entry's title in the Recent Entries plugin.

What the problem is: it seems everywhere else the title is escaped with htmlspecialchars() before display, and the body of the link generated by the Recent Entries plugin should also escape the title before display (this is on line 226 of plugins/serendipity_plugin_recententries/serendipity_plugin_recententries.php). You'll note that it's run on $entry['title'] for the title attribute of the article link, but it's not run on the body of the link itself.

Re: Recent Entries plugin displays titles incorrectly

Posted: Mon Sep 21, 2009 10:09 am
by garvinhicking
Hi!

A good catch, many thanks. I've committed your change!

Regards,
Garvin