make subscribe-to-feed dialog use POST
This commit is contained in:
parent
5094b4fc4d
commit
bce7001fd1
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 "<html>
|
||||
|
|
Loading…
Reference in New Issue