When the XML output is generated various of pieces of information are plugged into an XML template. Not of this data is encoded and this can break the generated XML.
For example, if your site slogan contains something like " ", this ends up in the description and then in the XML output as is, but the & needs to be encoded.
Couple of issues here. When using Drupal variables you may want to scrub all HTML tags. Second, all content plugged into XML needs to be encoded.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | xmlescape.patch | 1.08 KB | mariuss |
Comments
Comment #1
mariuss commentedHere is the slogan example again: " "
Comment #2
mariuss commentedAttached a patch, against CVS version, branch of Drupal 5.
Comment #3
robloachThanks a lot, mariuss! Committed to both Drupal 5 and 6 branches.....
http://drupal.org/cvs?commit=126873
http://drupal.org/cvs?commit=126872
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.