Skip to content

Commit dc972cc

Browse files
authored
Merge pull request #23420 from nextcloud/backport/23402/stable20
[stable20] Encode requesttoken for logout url in auto logout
2 parents 09b4f9b + 098c631 commit dc972cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/js/dist/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/js/dist/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/session-heartbeat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const registerAutoLogout = () => {
126126
const timeout = Date.now() - config.session_lifetime * 1000
127127
if (lastActive < timeout) {
128128
console.info('Inactivity timout reached, logging out')
129-
const logoutUrl = generateUrl('/logout') + '?requesttoken=' + getRequestToken()
129+
const logoutUrl = generateUrl('/logout') + '?requesttoken=' + encodeURIComponent(getRequestToken())
130130
window.location = logoutUrl
131131
}
132132
}, 1000)

0 commit comments

Comments
 (0)