all-redirects needlessly escapes special characters in URIs for XML

Bug #703038 reported by Johannes Rössel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LongURL
New
Undecided
Unassigned

Bug Description

When using the API with all-redirects=1 the redirects have & escaped to &amp; in the XML output (which isn't necessary since they are enclosed in <![CDATA[...]]>

Example:

   http://api.longurl.org/v2/expand?all-redirects=1&url=http://is.gd/hCXd46

yields:

<?xml version="1.0"?>
<response>
    <long-url><![CDATA[http://www.google.com/?foo=bar&boo=far]]></long-url>
<all-redirects>
<redirect><![CDATA[http://google.com/?foo=bar&amp;boo=far]]></redirect>
<redirect><![CDATA[http://www.google.com/?foo=bar&amp;boo=far]]></redirect>
</all-redirects>
</response>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.