File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<addon
33 id =" pvr.iptvsimple"
4- version =" 21.9.2 "
4+ version =" 21.9.3 "
55 name =" IPTV Simple Client"
66 provider-name =" nightik and Ross Nicholson" >
77 <requires >@ADDON_DEPENDS@
Original file line number Diff line number Diff line change 1+ v21.9.3
2+ - Fix XMLTV format check
3+
14v21.9.2
25- Fix XML file format check
36- Always treat special paths as local
Original file line number Diff line number Diff line change @@ -226,9 +226,9 @@ const XmltvFileFormat Epg::GetXMLTVFileFormat(const char* buffer)
226226 if (!buffer)
227227 return XmltvFileFormat::INVALID;
228228
229- if ((buffer[0 ] != ' \x3C ' && buffer[std::strlen (buffer) - 1 ] ! = ' \x3E ' ) || // Start with < and ends with >
230- (buffer[0 ] != ' \x3C ' && buffer[1 ] != ' \x3F ' && buffer[2 ] ! = ' \x78 ' && // xml should starts with '<?xml'
231- buffer[3 ] != ' \x6D ' && buffer[4 ] ! = ' \x6C ' ))
229+ if ((buffer[0 ] == ' \x3C ' && buffer[std::strlen (buffer) - 1 ] = = ' \x3E ' ) || // Start with < and ends with >
230+ (buffer[0 ] == ' \x3C ' && buffer[1 ] == ' \x3F ' && buffer[2 ] = = ' \x78 ' && // xml should starts with '<?xml'
231+ buffer[3 ] == ' \x6D ' && buffer[4 ] = = ' \x6C ' ))
232232 {
233233 return XmltvFileFormat::NORMAL;
234234 }
You can’t perform that action at this time.
0 commit comments