Merge pull request #23420 from nextcloud/backport/23402/stable20

[stable20] Encode requesttoken for logout url in auto logout
This commit is contained in:
Morris Jobke 2020-10-13 21:43:53 +02:00 committed by GitHub
commit dc972cc162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -126,7 +126,7 @@ const registerAutoLogout = () => {
const timeout = Date.now() - config.session_lifetime * 1000
if (lastActive < timeout) {
console.info('Inactivity timout reached, logging out')
const logoutUrl = generateUrl('/logout') + '?requesttoken=' + getRequestToken()
const logoutUrl = generateUrl('/logout') + '?requesttoken=' + encodeURIComponent(getRequestToken())
window.location = logoutUrl
}
}, 1000)