From 66c34ddb6ecaca93513edcb58d50404822cda368 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 19 Feb 2024 14:20:08 +0800 Subject: [PATCH] Avoid leaking user locale preference to the web --- src/webui/www/public/index.html | 12 ++++++------ src/webui/www/public/scripts/login.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/webui/www/public/index.html b/src/webui/www/public/index.html index 226fef74d..f80bc15aa 100644 --- a/src/webui/www/public/index.html +++ b/src/webui/www/public/index.html @@ -5,7 +5,7 @@ - qBittorrent QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog] + qBittorrent WebUI @@ -17,25 +17,25 @@
-

qBittorrent QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]

+

qBittorrent WebUI

-
+
-
+
- +
diff --git a/src/webui/www/public/scripts/login.js b/src/webui/www/public/scripts/login.js index 44f40000f..41d0c6698 100644 --- a/src/webui/www/public/scripts/login.js +++ b/src/webui/www/public/scripts/login.js @@ -45,13 +45,13 @@ function submitLoginForm(event) { if ((xhr.status === 200) && (xhr.responseText === "Ok.")) location.reload(true); else - errorMsgElement.textContent = 'QBT_TR(Invalid Username or Password.)QBT_TR[CONTEXT=HttpServer]'; + errorMsgElement.textContent = 'Invalid Username or Password.'; } }); xhr.addEventListener('error', function() { errorMsgElement.textContent = (xhr.responseText !== "") ? xhr.responseText - : 'QBT_TR(Unable to log in, qBittorrent is probably unreachable.)QBT_TR[CONTEXT=HttpServer]'; + : 'Unable to log in, qBittorrent is probably unreachable.'; }); const usernameElement = document.getElementById('username');