summaryrefslogtreecommitdiffhomepage
path: root/plugins/webbox/html/webbox.js
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-20 18:22:59 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-20 18:22:59 +0200
commit5408976a072ee79df77499e2dfbc69c4cfd5d266 (patch)
tree7edbf86f0f89b2eb6b12cb2d30d24e2f02fa402d /plugins/webbox/html/webbox.js
parentb15c034bfb19a30e2e2d68f28bc4ce199a39069d (diff)
Webbox: Fix auth popup on certain browsers
Diffstat (limited to 'plugins/webbox/html/webbox.js')
-rw-r--r--plugins/webbox/html/webbox.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/plugins/webbox/html/webbox.js b/plugins/webbox/html/webbox.js
index 9b3a486..54adeaf 100644
--- a/plugins/webbox/html/webbox.js
+++ b/plugins/webbox/html/webbox.js
@@ -321,17 +321,7 @@ function initMainpage() {
}
if (this.status == 401) { // login error: goto login page
var authheader = this.getResponseHeader("WWW-Authenticate");
- var title = "Webbox";
- // For web servers with standard AUTH BASIC, triggering problems in
- // client browsers, popping up the browser's "Authenticate" window
- // but we want our own
- if (authheader.startsWith("Basic realm=\"") && authheader.endsWith("\"")) {
- title = authheader.substr(13, authheader.length - 14);
- } else
- // Fixed up Apache server
- if (authheader.startsWith("SR_Basic realm=\"") && authheader.endsWith("\"")) {
- title = authheader.substr(16, authheader.length - 17);
- }
+ var title = "Webbox Login";
// enable logout function if logging in
document.getElementById("logoutcommand").style.display = "table-row";