From 1018dc7ced2b7319b8173037631e56aeef889d7a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sat, 21 Sep 2019 17:44:58 +0100 Subject: [PATCH] Don't log query parameters as they may contain secrets Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vector/index.js b/src/vector/index.js index 6a60a978..afdad64f 100644 --- a/src/vector/index.js +++ b/src/vector/index.js @@ -334,7 +334,8 @@ async function loadApp() { const acceptInvalidBrowser = window.localStorage && window.localStorage.getItem('mx_accepts_unsupported_browser'); - console.log("Vector starting at "+window.location); + const urlWithoutQuery = window.location.protocol + '//' + window.location.host + window.location.pathname; + console.log("Vector starting at " + urlWithoutQuery); if (configError) { window.matrixChat = ReactDOM.render(
Unable to load config file: please refresh the page to try again.