Urlencode the requesttoken

Followup of #13757

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-01-23 16:16:31 +01:00
parent 68c0fd3863
commit e3de4edc51
No known key found for this signature in database
GPG Key ID: F941078878347C0C
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,