Escape ampersand in logout URL

* fixes #17757
This commit is contained in:
Morris Jobke 2015-07-21 00:26:30 +02:00
parent d20e2002a6
commit 5a5c59639b

View file

@ -405,7 +405,7 @@ class OC_User {
return $backend->getLogoutAttribute();
}
return 'href="' . link_to('', 'index.php') . '?logout=true&requesttoken=' . urlencode(OC_Util::callRegister()) . '"';
return 'href="' . link_to('', 'index.php') . '?logout=true&requesttoken=' . urlencode(OC_Util::callRegister()) . '"';
}
/**