]> git.wh0rd.org Git - tt-rss.git/commitdiff
savefeedorder, savefilterorder: do not use clean() on json payload
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 4 Feb 2018 06:33:28 +0000 (09:33 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 4 Feb 2018 06:33:28 +0000 (09:33 +0300)
classes/pref/feeds.php [changed mode: 0644->0755]
classes/pref/filters.php

old mode 100644 (file)
new mode 100755 (executable)
index 30bfbc1..245eea0
@@ -389,7 +389,7 @@ class Pref_Feeds extends Handler_Protected {
        }
 
        function savefeedorder() {
-               $data = json_decode(clean($_POST['payload']), true);
+               $data = json_decode($_POST['payload'], true);
 
                #file_put_contents("/tmp/saveorder.json", clean($_POST['payload']));
                #$data = json_decode(file_get_contents("/tmp/saveorder.json"), true);
index eb41bab4acadf24e55cd5a2e70989af94a42372e..d87df0973fde6b10e7b1e5f24496c710fa851441 100755 (executable)
@@ -16,7 +16,7 @@ class Pref_Filters extends Handler_Protected {
        }
 
        function savefilterorder() {
-               $data = json_decode(clean($_POST['payload']), true);
+               $data = json_decode($_POST['payload'], true);
 
                #file_put_contents("/tmp/saveorder.json", clean($_POST['payload']));
                #$data = json_decode(file_get_contents("/tmp/saveorder.json"), true);
@@ -1243,4 +1243,4 @@ class Pref_Filters extends Handler_Protected {
 
                $this->pdo->commit();
        }
-}
\ No newline at end of file
+}