From: Andrew Dolgov Date: Wed, 25 Apr 2007 14:42:31 +0000 (+0100) Subject: make subscribe-to-feed dialog use POST X-Git-Tag: schema_freeze_for_1.2.11~96 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bce7001fd1f1c2f105e7ebe9d1b533cf553bb3c5;p=tt-rss.git make subscribe-to-feed dialog use POST --- diff --git a/functions.js b/functions.js index e7e211ed..7fe79c9a 100644 --- a/functions.js +++ b/functions.js @@ -1437,9 +1437,14 @@ function qaddFeed() { var query = Form.serialize("feed_add_form"); - xmlhttp.open("GET", "backend.php?" + query, true); +/* xmlhttp.open("GET", "backend.php?" + query, true); xmlhttp.onreadystatechange=dlg_frefresh_callback; - xmlhttp.send(null); + xmlhttp.send(null); */ + + xmlhttp.open("POST", "backend.php", true); + xmlhttp.onreadystatechange=dlg_frefresh_callback; + xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); + xmlhttp.send(query); return false; } diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index ffdbcf25..61fc2167 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -425,9 +425,9 @@ if (!WEB_DEMO_MODE) { - $feed_url = db_escape_string(trim($_GET["feed_url"])); - $cat_id = db_escape_string($_GET["cat_id"]); - $p_from = db_escape_string($_GET["from"]); + $feed_url = db_escape_string(trim($_POST["feed_url"])); + $cat_id = db_escape_string($_POST["cat_id"]); + $p_from = db_escape_string($_POST["from"]); if ($p_from != 'tt-rss') { print "