mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:05:56 +00:00
amend previous to fix actual underlying problem (double escaping)
This commit is contained in:
@@ -388,11 +388,9 @@ class Pref_Filters extends Handler_Protected {
|
|||||||
if (!$line["inverse"]) unset($line["inverse"]);
|
if (!$line["inverse"]) unset($line["inverse"]);
|
||||||
unset($line["match_on"]);
|
unset($line["match_on"]);
|
||||||
|
|
||||||
$data = htmlspecialchars((string)json_encode($line));
|
|
||||||
|
|
||||||
print "<li><input dojoType='dijit.form.CheckBox' type='checkbox' onclick='Lists.onRowChecked(this)'>
|
print "<li><input dojoType='dijit.form.CheckBox' type='checkbox' onclick='Lists.onRowChecked(this)'>
|
||||||
<span onclick='App.dialogOf(this).editRule(this)'>".$this->_get_rule_name($line)."</span>".
|
<span onclick='App.dialogOf(this).editRule(this)'>".$this->_get_rule_name($line)."</span>".
|
||||||
\Controls\hidden_tag("rule[]", $data)."</li>";
|
\Controls\hidden_tag("rule[]", (string)json_encode($line))."</li>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -430,11 +428,9 @@ class Pref_Filters extends Handler_Protected {
|
|||||||
unset($line["filter_id"]);
|
unset($line["filter_id"]);
|
||||||
unset($line["id"]);
|
unset($line["id"]);
|
||||||
|
|
||||||
$data = htmlspecialchars((string)json_encode($line));
|
|
||||||
|
|
||||||
print "<li><input dojoType='dijit.form.CheckBox' type='checkbox' onclick='Lists.onRowChecked(this)'>
|
print "<li><input dojoType='dijit.form.CheckBox' type='checkbox' onclick='Lists.onRowChecked(this)'>
|
||||||
<span onclick='App.dialogOf(this).editAction(this)'>".$this->_get_action_name($line)."</span>".
|
<span onclick='App.dialogOf(this).editAction(this)'>".$this->_get_action_name($line)."</span>".
|
||||||
\Controls\hidden_tag("action[]", $data)."</li>";
|
\Controls\hidden_tag("action[]", (string)json_encode($line))."</li>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
function hidden_tag(string $name, string $value) {
|
function hidden_tag(string $name, string $value) {
|
||||||
return "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\"
|
return "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\"
|
||||||
name=\"".htmlspecialchars($name)."\" value=\"$value\">";
|
name=\"".htmlspecialchars($name)."\" value=\"".htmlspecialchars($value)."\">";
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkbox_tag(string $name, bool $checked = false, string $value = "", string $attributes = "", string $id = "") {
|
function checkbox_tag(string $name, bool $checked = false, string $value = "", string $attributes = "", string $id = "") {
|
||||||
|
|||||||
Reference in New Issue
Block a user