From: Andrew Dolgov Date: Mon, 4 Dec 2017 05:27:25 +0000 (+0300) Subject: setpref: remove nl2br() X-Git-Tag: 18.8~134 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=92175a83717dcee7acbd6ff795ce4fa8182e2c75;p=tt-rss.git setpref: remove nl2br() --- diff --git a/classes/rpc.php b/classes/rpc.php index cb71412a..f8cf7a82 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -116,7 +116,7 @@ class RPC extends Handler_Protected { function setpref() { // set_pref escapes input, so no need to double escape it here $key = clean($_REQUEST['key']); - $value = nl2br($_REQUEST['value']); + $value = $_REQUEST['value']; set_pref($key, $value, false, $key != 'USER_STYLESHEET');