Skip to content

Commit 1018dc7

Browse files
committed
Don't log query parameters as they may contain secrets
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent e8fbd77 commit 1018dc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vector/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,8 @@ async function loadApp() {
334334

335335
const acceptInvalidBrowser = window.localStorage && window.localStorage.getItem('mx_accepts_unsupported_browser');
336336

337-
console.log("Vector starting at "+window.location);
337+
const urlWithoutQuery = window.location.protocol + '//' + window.location.host + window.location.pathname;
338+
console.log("Vector starting at " + urlWithoutQuery);
338339
if (configError) {
339340
window.matrixChat = ReactDOM.render(<div className="error">
340341
Unable to load config file: please refresh the page to try again.

0 commit comments

Comments
 (0)