Merge pull request #13766 from nextcloud/fix/13757/urlencode_requesttoken

Urlencode the requesttoken
This commit is contained in:
Morris Jobke 2019-01-23 18:29:18 +01:00 committed by GitHub
commit d549954024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -270,7 +270,7 @@ class OC_User {
}
$logoutUrl = $urlGenerator->linkToRouteAbsolute('core.login.logout');
$logoutUrl .= '?requesttoken=' . \OCP\Util::callRegister();
$logoutUrl .= '?requesttoken=' . urlencode(\OCP\Util::callRegister());
return $logoutUrl;
}

View file

@ -270,7 +270,7 @@ class NavigationManagerTest extends TestCase {
'logout' => [
'id' => 'logout',
'order' => 99999,
'href' => 'https://example.com/logout?requesttoken='. \OCP\Util::callRegister(),
'href' => 'https://example.com/logout?requesttoken='. urlencode(\OCP\Util::callRegister()),
'icon' => '/apps/core/img/actions/logout.svg',
'name' => 'Log out',
'active' => false,