Bug #1034
status.xml: ERROR: not well-formed (invalid token): line 4, column 250
| Status: | Fixed | Start date: | 06/12/2012 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% | |
| Category: | WEB UI | |||
| Target version: | 3.2 | |||
| Found in version: | 2.99.16.g0e3bb | Affected Versions: |
Description
I use the status.xml of tvheadend to set wakeup-timers for my system. See http://forum.xbmc.org/showthread.php?tid=115758 The status.xml is malformed if there are special chars in the name of the recording, e.g. "Stefan & Erkan" or "Cats & Dogs".
Associated revisions
Added function (provided by sb1066) for escaping xml chars.
Renamed and moved escape routine to http.c http_escape* to be more generic.
Updated status.xml to use new escape routines to ensure consistent output. Fixes #1034.
History
#1
Updated by B. J. 11 months ago
This is the status.xml as shown in a browser:
XML-Verarbeitungsfehler: nicht wohlgeformt Adresse: http://horus:9981/status.xml Zeile Nr. 4, Spalte 251:<recording><start><date>2012/05/12</date><time>20:20</time><unixtime>1339525200</unixtime><extra_start>3</extra_start></start><stop><date>2012/05/12</date><time>21:45</time><unixtime>1339530300</unixtime><extra_stop>7</extra_stop></stop><title>Cats & Dogs: Die Rache der Kitty Kahlohr</title><status>Recording</status></recording> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^
The Marker shows the "&" between "Cats & Dogs"
#2
Updated by Adam Sutton 10 months ago
- Category set to WEB UI
- Status changed from New to Accepted
- Assignee deleted (
Andreas Ă–man)
Agreed, page_status() doesn't clean the EPG strings it just outputs as is, so it will produce invalid XML.
#3
Updated by Andy Brown 9 months ago
- Status changed from Accepted to Fixed
- % Done changed from 0 to 100
Applied in changeset 951c2af888a8e701d5b9c312f341b814cc37233a.
#4
Updated by Adam Sutton 7 months ago
- Target version set to 3.2