mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:15:55 +00:00
fix rpc setpref (key unassigned)
This commit is contained in:
@@ -210,9 +210,9 @@ class RPC extends Protected_Handler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function setpref() {
|
function setpref() {
|
||||||
$value = str_replace("\n", "<br/>", $_REQUEST['value']);
|
|
||||||
|
|
||||||
// set_pref escapes input, so no need to double escape it here
|
// 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');
|
set_pref($this->link, $key, $value, $_SESSION['uid'], $key != 'USER_STYLESHEET');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user