
sitemapgen4j - issue #2
AbstractSitemapUrlRenderer should take care of escaping entities & and < in URLs
What steps will reproduce the problem? 1. add a URL containing a & in path, e.g. http://www.domain.com/user/me&you/ 2. generate the sitemap 3. ampersand is not correctly encoded for XML
What is the expected output? What do you see instead? ampersand should be encoded for XML: http://www.domain.tld/user/me&you/
What version of the product are you using? On what operating system? 1.0.1 on win xp
Please provide any additional information below. Both & and < are valid characters of a URL, but not in XML see URL RFC (3.3 / 3.4): http://www.ietf.org/rfc/rfc2396.txt and XML Spec (2.4): http://www.w3.org/TR/REC-xml/
Comment #1
Posted on Aug 20, 2010 by Quick RabbitAny changes for this problem? I have to encode the urls myself?
Status: New
Labels:
Type-Defect
Priority-Medium