Bug #3942

XMLTV exports invalid chars

Added by Luis Alves about 1 year ago. Updated about 1 year ago.

Status:FixedStart date:2016-08-19
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-
Found in version:latest git Affected Versions:

Description

In my case, I'm seeing the ^Z (Ctrl-Z) char being exported among the text.

Associated revisions

Revision 3de32442
Added by Jaroslav Kysela about 1 year ago

htsbuf_append_and_escape_xml: filter out invalid XML 1.0 characters, fixes #3942

History

#1 Updated by Jaroslav Kysela about 1 year ago

Could you show an example output? Please, attach it as a file. Or tell us your satellite position and service which causes this (if you use the satellite broadcast).

#2 Updated by Luis Alves about 1 year ago

Hispasat 30ºW (providers: MEO, NOS)

File here:
http://213.58.180.187/xmltv.gz

(search for ^Z char)

Regards,
Luis

#3 Updated by Luis Alves about 1 year ago

By the way, my quick fix was:

--- a/src/htsbuf.c
++ b/src/htsbuf.c
@ -363,6 +363,7 @ htsbuf_append_and_escape_xml(htsbuf_queue_t *hq, const char *s)
case '&': esc = "&"; break;
case '\'': esc = "'"; break;
case '"': esc = """; break;
case '^Z': esc = ""; break;
default: esc = NULL; break;
}

#4 Updated by Jaroslav Kysela about 1 year ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#5 Updated by Jaroslav Kysela about 1 year ago

  • % Done changed from 100 to 0

Thanks, Fixed in v4.1-2189-g3de3244 . But it seems also like an issue in the EPG data import side.

#6 Updated by Jaroslav Kysela about 1 year ago

  • % Done changed from 0 to 100

Also available in: Atom PDF