mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:05:55 +00:00
fix customize CSS dialog disappearing newlines
This commit is contained in:
@@ -212,10 +212,9 @@ class RPC extends Protected_Handler {
|
||||
function setpref() {
|
||||
$value = str_replace("\n", "<br/>", $_REQUEST['value']);
|
||||
|
||||
$key = db_escape_string($_REQUEST["key"]);
|
||||
$value = db_escape_string($value);
|
||||
// set_pref escapes input, so no need to double escape it here
|
||||
|
||||
set_pref($this->link, $key, $value);
|
||||
set_pref($this->link, $key, $value, $_SESSION['uid'], false);
|
||||
|
||||
print json_encode(array("param" =>$key, "value" => $value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user