mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:25:55 +00:00
savefeedorder, savefilterorder: do not use clean() on json payload
This commit is contained in:
2
classes/pref/feeds.php
Normal file → Executable file
2
classes/pref/feeds.php
Normal file → Executable file
@@ -389,7 +389,7 @@ class Pref_Feeds extends Handler_Protected {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function savefeedorder() {
|
function savefeedorder() {
|
||||||
$data = json_decode(clean($_POST['payload']), true);
|
$data = json_decode($_POST['payload'], true);
|
||||||
|
|
||||||
#file_put_contents("/tmp/saveorder.json", clean($_POST['payload']));
|
#file_put_contents("/tmp/saveorder.json", clean($_POST['payload']));
|
||||||
#$data = json_decode(file_get_contents("/tmp/saveorder.json"), true);
|
#$data = json_decode(file_get_contents("/tmp/saveorder.json"), true);
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class Pref_Filters extends Handler_Protected {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function savefilterorder() {
|
function savefilterorder() {
|
||||||
$data = json_decode(clean($_POST['payload']), true);
|
$data = json_decode($_POST['payload'], true);
|
||||||
|
|
||||||
#file_put_contents("/tmp/saveorder.json", clean($_POST['payload']));
|
#file_put_contents("/tmp/saveorder.json", clean($_POST['payload']));
|
||||||
#$data = json_decode(file_get_contents("/tmp/saveorder.json"), true);
|
#$data = json_decode(file_get_contents("/tmp/saveorder.json"), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user