]> git.wh0rd.org Git - tt-rss.git/commitdiff
setpref: remove nl2br()
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 4 Dec 2017 05:27:25 +0000 (08:27 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 4 Dec 2017 05:27:25 +0000 (08:27 +0300)
classes/rpc.php

index cb71412ae09012f049164b869b63cad6efe7c05c..f8cf7a828be9bd344c3cf1febae69febc770aee7 100755 (executable)
@@ -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');