Feeds created do not encode some strings

mohanjith - March 3, 2008 - 14:04
Project:Atom
Version:5.x-1.0
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:patch (code needs review)
Description

It is necessary that strings are xml escaped, however title and subtitle are not escaped in feeds created by the atom module. If the site title contains "&", then the atom/feed will guaranteed to be invalid. This issue is a blocker for sites such as http://wso2.org (The patch is now applied).

The attached patch uses php built in function htmlentities function to encode the title and the subtitle.

AttachmentSize
atom.module.patch1.11 KB

#1

mohanjith - March 3, 2008 - 14:04
Status:active» patch (code needs review)

#2

mohanjith - March 3, 2008 - 15:19
Assigned to:mohanjith» Anonymous
 
 

Drupal is a registered trademark of Dries Buytaert.