Merge pull request #13766 from nextcloud/fix/13757/urlencode_requesttoken
Urlencode the requesttoken
This commit is contained in:
commit
d549954024
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue