mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:05:55 +00:00
setpref: remove nl2br()
This commit is contained in:
@@ -116,7 +116,7 @@ class RPC extends Handler_Protected {
|
|||||||
function setpref() {
|
function setpref() {
|
||||||
// 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 = clean($_REQUEST['key']);
|
$key = clean($_REQUEST['key']);
|
||||||
$value = nl2br($_REQUEST['value']);
|
$value = $_REQUEST['value'];
|
||||||
|
|
||||||
set_pref($key, $value, false, $key != 'USER_STYLESHEET');
|
set_pref($key, $value, false, $key != 'USER_STYLESHEET');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user