summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2016-01-18 20:00:46 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-01-18 20:00:46 +0100
commitcf8d43c424da886a318f9cad1c6aa6a2afbf7967 (patch)
treec36413c72f1d6eda142738bc5f2efd12d678d1f8
parent925422b8fda8b3754340a041c86b1c53f76eb847 (diff)
downloadflask-mediabrowser-cf8d43c424da886a318f9cad1c6aa6a2afbf7967.tar.gz
flask-mediabrowser-cf8d43c424da886a318f9cad1c6aa6a2afbf7967.zip
fix http-auth detection regex
-rw-r--r--mediabrowser/templates/watch.html2
1 files changed, 1 insertions, 1 deletions
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()