Merge pull request #23421 from nextcloud/backport/23402/stable19
[stable19] Encode requesttoken for logout url in auto logout
This commit is contained in:
commit
22b09f3510
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -126,7 +126,7 @@ const registerAutoLogout = () => {
|
||||||
const timeout = Date.now() - config.session_lifetime * 1000
|
const timeout = Date.now() - config.session_lifetime * 1000
|
||||||
if (lastActive < timeout) {
|
if (lastActive < timeout) {
|
||||||
console.info('Inactivity timout reached, logging out')
|
console.info('Inactivity timout reached, logging out')
|
||||||
const logoutUrl = generateUrl('/logout') + '?requesttoken=' + getRequestToken()
|
const logoutUrl = generateUrl('/logout') + '?requesttoken=' + encodeURIComponent(getRequestToken())
|
||||||
window.location = logoutUrl
|
window.location = logoutUrl
|
||||||
}
|
}
|
||||||
}, 1000)
|
}, 1000)
|
||||||
|
|
Loading…
Reference in New Issue