From 7ba727208e386162e07c949fa2947025b491728d Mon Sep 17 00:00:00 2001 From: phunkyfish Date: Mon, 7 Oct 2024 05:37:51 +0100 Subject: [PATCH] Fix XML file format check --- src/iptvsimple/Epg.cpp | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/iptvsimple/Epg.cpp b/src/iptvsimple/Epg.cpp index 9ac6286b..91517957 100644 --- a/src/iptvsimple/Epg.cpp +++ b/src/iptvsimple/Epg.cpp @@ -226,19 +226,22 @@ const XmltvFileFormat Epg::GetXMLTVFileFormat(const char* buffer) if (!buffer) return XmltvFileFormat::INVALID; - // xml should starts with ' + (buffer[0] != '\x3C' && buffer[1] != '\x3F' && buffer[2] != '\x78' && // xml should starts with '