From: Andrew Dolgov Date: Mon, 13 Feb 2012 11:09:39 +0000 (+0400) Subject: fix rpc setpref (key unassigned) X-Git-Tag: 1.5.10~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=74eef4fca843321ac6a611140c536e3c5fd97a6f;p=tt-rss.git fix rpc setpref (key unassigned) --- diff --git a/classes/rpc.php b/classes/rpc.php index d5e7b937..a5e32d47 100644 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -210,9 +210,9 @@ class RPC extends Protected_Handler { } function setpref() { - $value = str_replace("\n", "
", $_REQUEST['value']); - // set_pref escapes input, so no need to double escape it here + $key = $_REQUEST['key']; + $value = str_replace("\n", "
", $_REQUEST['value']); set_pref($this->link, $key, $value, $_SESSION['uid'], $key != 'USER_STYLESHEET');