Project

General

Profile

Bug #3942

XMLTV exports invalid chars

Added by Luis Alves about 6 years ago. Updated almost 6 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-08-19
Due date:
% Done:

100%

Estimated time:
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 (diff)
Added by Jaroslav Kysela almost 6 years ago

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

History

#1

Updated by Jaroslav Kysela almost 6 years 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 almost 6 years 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 almost 6 years 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 almost 6 years ago

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

Updated by Jaroslav Kysela almost 6 years 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 almost 6 years ago

  • % Done changed from 0 to 100

Also available in: Atom PDF