From bce7001fd1f1c2f105e7ebe9d1b533cf553bb3c5 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 25 Apr 2007 15:42:31 +0100 Subject: make subscribe-to-feed dialog use POST --- functions.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'functions.js') diff --git a/functions.js b/functions.js index e7e211edd..7fe79c9a8 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; } -- cgit v1.2.3