setpref: remove nl2br()

This commit is contained in:
Andrew Dolgov 2017-12-04 08:27:25 +03:00
parent e6532439d6
commit 92175a8371
1 changed files with 1 additions and 1 deletions

View File

@ -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');