]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: autonet - improve parsing of extra HTTP headers - accept & delimiter
authorJaroslav Kysela <perex@perex.cz>
Sun, 1 Nov 2015 16:44:41 +0000 (17:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 1 Nov 2015 16:44:41 +0000 (17:44 +0100)
src/input/mpegts/iptv/iptv_auto.c

index 4beb87786fad459b69cd61eba3cba68115e59b42..273ad3614bd6c516e666769d0f142d9e3daacae6 100644 (file)
@@ -144,7 +144,7 @@ iptv_auto_network_process_m3u_item(iptv_network_t *in,
     while (*n) {
       while (*n && *n <= ' ') n++;
       y = n;
-      while (*n && *n != delim) n++;
+      while (*n && *n != delim && *n != '&') n++;
       if (*n) { *n = '\0'; n++; }
       if (*y)
         tvh_strlcatf(custom, sizeof(custom), l, "%s\n", y);