Opened 19 years ago
Closed 19 years ago
#832 closed defect (fixed)
SVN: 8306 - Channel icon import fails with ampersands in iconmap.xml
Reported by: | 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)
Change History (4)
comment:1 Changed 19 years ago by
Changed 19 years ago by
Attachment: | mkiconmap.pl.diff added |
---|
Patch that will replace ampersand with correct sequence in xml creation
comment:2 Changed 19 years ago by
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 &
if no & exists it won't do anything.
That is broken XML. If you need "&" in XML it has to be encoded as "&"