]> git.wh0rd.org - tt-rss.git/commitdiff
make subscribe-to-feed dialog use POST
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 25 Apr 2007 14:42:31 +0000 (15:42 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 25 Apr 2007 14:42:31 +0000 (15:42 +0100)
functions.js
modules/pref-feeds.php

index e7e211edde0baba5516336308af002553c709984..7fe79c9a821f6ce4ea2825b848ff4082fa4fc465 100644 (file)
@@ -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;
 }
index ffdbcf25b58b66a4e9bcc3f88a848f20f6d4d31f..61fc2167c335a098d3cf7f4af530f79c6789328f 100644 (file)
                
                        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 "<html>