fix rpc setpref (key unassigned)
This commit is contained in:
parent
7e431502dd
commit
74eef4fca8
1 changed files with 2 additions and 2 deletions
|
@ -210,9 +210,9 @@ class RPC extends Protected_Handler {
|
|||
}
|
||||
|
||||
function setpref() {
|
||||
$value = str_replace("\n", "<br/>", $_REQUEST['value']);
|
||||
|
||||
// set_pref escapes input, so no need to double escape it here
|
||||
$key = $_REQUEST['key'];
|
||||
$value = str_replace("\n", "<br/>", $_REQUEST['value']);
|
||||
|
||||
set_pref($this->link, $key, $value, $_SESSION['uid'], $key != 'USER_STYLESHEET');
|
||||
|
||||
|
|
Loading…
Reference in a new issue