Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/RMerl/asuswrt-merlin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sauvageau <rmerl@lostrealm.ca>2016-12-28 06:07:09 +0300
committerEric Sauvageau <rmerl@lostrealm.ca>2016-12-28 06:07:13 +0300
commit4db182be06875e0087b4a88239939efc74852954 (patch)
treec99eb338f5e9906b977d01d36720b48d348de716
parent2ade8289eea4ea86489b02cc0cc638984ac9b95c (diff)
webui/httpd: fix broken tools (ping/traceroute/netstat/wol) in 4180 by submitting the form using POST instead of GET method4180
Using GET was generating an URL longer than the 128 characters buffer used by httpd, causing the command parameters to be missing (a test with "ping" resulted in a 283 characters-long url). Since other pages use POST, switching these pages as well will fix the issue and make the webui behaviour more uniform.
-rw-r--r--release/src/router/www/Main_Analysis_Content.asp2
-rw-r--r--release/src/router/www/Main_ConnStatus_Content.asp2
-rw-r--r--release/src/router/www/Main_Netstat_Content.asp2
-rw-r--r--release/src/router/www/Main_WOL_Content.asp2
4 files changed, 4 insertions, 4 deletions
diff --git a/release/src/router/www/Main_Analysis_Content.asp b/release/src/router/www/Main_Analysis_Content.asp
index 7a13379535..b8f33c2a6d 100644
--- a/release/src/router/www/Main_Analysis_Content.asp
+++ b/release/src/router/www/Main_Analysis_Content.asp
@@ -209,7 +209,7 @@ function pullLANIPList(obj){
<div id="TopBanner"></div>
<div id="Loading" class="popup_bg"></div>
<iframe name="hidden_frame" id="hidden_frame" src="" width="0" height="0" frameborder="0"></iframe>
-<form method="GET" name="form" action="/apply.cgi" target="hidden_frame">
+<form method="POST" name="form" action="/apply.cgi" target="hidden_frame">
<input type="hidden" name="current_page" value="Main_Analysis_Content.asp">
<input type="hidden" name="next_page" value="Main_Analysis_Content.asp">
<input type="hidden" name="group_id" value="">
diff --git a/release/src/router/www/Main_ConnStatus_Content.asp b/release/src/router/www/Main_ConnStatus_Content.asp
index 8d2d8d4a3f..7e0ed37210 100644
--- a/release/src/router/www/Main_ConnStatus_Content.asp
+++ b/release/src/router/www/Main_ConnStatus_Content.asp
@@ -93,7 +93,7 @@ function checkCmdRet(){
<div id="TopBanner"></div>
<div id="Loading" class="popup_bg"></div>
<iframe name="hidden_frame" id="hidden_frame" src="" width="0" height="0" frameborder="0"></iframe>
-<form method="GET" name="form" action="/apply.cgi" target="hidden_frame">
+<form method="POST" name="form" action="/apply.cgi" target="hidden_frame">
<input type="hidden" name="current_page" value="Main_ConnStatus_Content.asp">
<input type="hidden" name="next_page" value="Main_ConnStatus_Content.asp">
<input type="hidden" name="group_id" value="">
diff --git a/release/src/router/www/Main_Netstat_Content.asp b/release/src/router/www/Main_Netstat_Content.asp
index a56fdd1bf2..8daa60565b 100644
--- a/release/src/router/www/Main_Netstat_Content.asp
+++ b/release/src/router/www/Main_Netstat_Content.asp
@@ -201,7 +201,7 @@ function validForm(){
<div id="TopBanner"></div>
<div id="Loading" class="popup_bg"></div>
<iframe name="hidden_frame" id="hidden_frame" src="" width="0" height="0" frameborder="0"></iframe>
-<form method="GET" name="form" action="/apply.cgi" target="hidden_frame">
+<form method="POST" name="form" action="/apply.cgi" target="hidden_frame">
<input type="hidden" name="current_page" value="Main_Netstat_Content.asp">
<input type="hidden" name="next_page" value="Main_Netstat_Content.asp">
<input type="hidden" name="group_id" value="">
diff --git a/release/src/router/www/Main_WOL_Content.asp b/release/src/router/www/Main_WOL_Content.asp
index 96692eb2f1..6702e69942 100644
--- a/release/src/router/www/Main_WOL_Content.asp
+++ b/release/src/router/www/Main_WOL_Content.asp
@@ -295,7 +295,7 @@ function applyRule(){
<div id="TopBanner"></div>
<div id="Loading" class="popup_bg"></div>
<iframe name="hidden_frame" id="hidden_frame" src="" width="0" height="0" frameborder="0"></iframe>
-<form method="GET" name="form" action="/apply.cgi" target="hidden_frame">
+<form method="POST" name="form" action="/apply.cgi" target="hidden_frame">
<input type="hidden" name="current_page" value="Main_WOL_Content.asp">
<input type="hidden" name="next_page" value="Main_WOL_Content.asp">
<input type="hidden" name="group_id" value="">