xml encoding
mariuss - July 10, 2008 - 16:32
| Project: | OpenSearch Plugin |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Description
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.

#1
Here is the slogan example again: " "
#2
Attached a patch, against CVS version, branch of Drupal 5.
#3
Thanks a lot, mariuss! Committed to both Drupal 5 and 6 branches.....
http://drupal.org/cvs?commit=126873
http://drupal.org/cvs?commit=126872
#4
Automatically closed -- issue fixed for two weeks with no activity.