]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix filter test dialog
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 26 Dec 2011 12:02:59 +0000 (16:02 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Mon, 26 Dec 2011 12:02:59 +0000 (16:02 +0400)
classes/dlg.php
classes/pref_filters.php

index a72683ef37cb5dbb49b9a9e450d37d83e830a219..33295b9041f54b90df2f7aa53e567b5c5aa2bc3f 100644 (file)
@@ -417,6 +417,7 @@ class Dlg extends Protected_Handler {
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-filters\">";
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"quiet\" value=\"1\">";
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"add\">";
+               print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"csrf_token\" value=\"".$_SESSION['csrf_token']."\">";
 
                $result = db_query($this->link, "SELECT id,description
                        FROM ttrss_filter_types ORDER BY description");
index 4ab12410f5cd98d91a7e16bb43c67437078337e2..e627ed2c898918a4877a46bff47ae5595508a5a8 100644 (file)
@@ -209,6 +209,7 @@ class Pref_Filters extends Protected_Handler {
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-filters\">";
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"id\" value=\"$filter_id\">";
                print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"method\" value=\"editSave\">";
+               print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"csrf_token\" value=\"".$_SESSION['csrf_token']."\">";
 
                $result = db_query($this->link, "SELECT id,description
                        FROM ttrss_filter_types ORDER BY description");