From cf8d43c424da886a318f9cad1c6aa6a2afbf7967 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Mon, 18 Jan 2016 20:00:46 +0100 Subject: fix http-auth detection regex --- mediabrowser/templates/watch.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediabrowser/templates/watch.html b/mediabrowser/templates/watch.html index db7ab6e..369fe59 100644 --- a/mediabrowser/templates/watch.html +++ b/mediabrowser/templates/watch.html @@ -69,7 +69,7 @@ var hls = new Hls(config); hls.on(Hls.Events.MANIFEST_LOADED, function(event, data) { // test if url contains authentication (http://user:pass@host/) - var authUrl = /(http?:\/\/)[^\/]*@([^\/]+\/.*)/.exec(data.url) + var authUrl = /(https?:\/\/)[^\/]*@([^\/]+\/.*)/.exec(data.url) if (authUrl) { // redirect to same page without authentication. // hls.js fails otherwise in src/utils/url.js #buildAbsoluteURL() -- cgit v1.2.1