Opened 18 years ago

Closed 18 years ago

#832 closed defect (fixed)

SVN: 8306 - Channel icon import fails with ampersands in iconmap.xml

Reported by: steve.adeff@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

the command 'mythfilldatabase --import-icon-map iconmap.xml --update-icon-map'

fails when a channel has an ampersand ('&') in its definition. I tried placing an escape slash in front of it with no luck either.

for instance my iconmap.xml had:

<networktourl>

<network>dni_SKF</network> <url>[dni_zap2it]/starz_kids&family.jpg</url>

</networktourl>

which once I deleted the url caused it to load properly.

Attachments (1)

mkiconmap.pl.diff (75 bytes) - added by adeffs@… 18 years ago.
Patch that will replace ampersand with correct sequence in xml creation

Download all attachments as: .zip

Change History (4)

comment:1 Changed 18 years ago by pstehlik@…

That is broken XML. If you need "&" in XML it has to be encoded as "&amp;"

Changed 18 years ago by adeffs@…

Attachment: mkiconmap.pl.diff added

Patch that will replace ampersand with correct sequence in xml creation

comment:2 Changed 18 years ago by adeffs@…

my first patch, so don't ream me =)

this will check to see if an & exists in the URL and if so replace it with &amp;

if no & exists it won't do anything.

comment:3 Changed 18 years ago by bjm

Resolution: fixed
Status: newclosed

(In [8360]) Closes #832 by applying patch.

Note: See TracTickets for help on using tickets.