git-svn-id: https://svn.code.sf.net/p/freetel/code@709 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 14 Sep 2012 23:01:28 +0000 (23:01 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 14 Sep 2012 23:01:28 +0000 (23:01 +0000)
mini-asterisk-gui2/cgi-bin/network-backdoor.cgi
mini-asterisk-gui2/cgi-bin/network-static.cgi
mini-asterisk-gui2/cgi-bin/network.cgi
mini-asterisk-gui2/network.js

index 1f5e83c781db09f7d75c9cde67488487213d43ff..0accbcdf70235d9acb9be9a2bee3156a80f00040 100755 (executable)
@@ -18,7 +18,7 @@ Content-type: text/html
 <body>
 EOF
 
-ARG=`echo "$QUERY_STRING" | sed -n "s/.*action=//p" | sed -n "s/%20/ /pg"`
+ARG=`echo "$QUERY_STRING" | sed -n "s/.*action=//p"`
 echo "$ARG"
 /etc/init.d/network-backdoor "$ARG"
 cat <<EOF
index 8aaeb24c29605d844ff2d0fe0f356c693fb2f5c0..b70d62ee25abc18a14c9085a0aabeeef61953c71 100644 (file)
@@ -18,7 +18,7 @@ Content-type: text/html
 <body>
 EOF
 
-ARG=`echo "$QUERY_STRING" | sed -n "s/.*action=//p" | sed -n "s/%20/ /pg"`
+ARG=`echo "$QUERY_STRING" | sed -n "s/.*action=//p"`
 echo "$ARG"
 /etc/init.d/network-static "$ARG"
 cat <<EOF
index 3d7624a7e43ae0b0e656e181b32a9b6cde0adf2d..6babf8a48bc595e116eec5e87f913bd56ec03dd1 100755 (executable)
@@ -18,7 +18,7 @@ Content-type: text/html
 <body>
 EOF
 
-ARG=`echo "$QUERY_STRING" | sed -n "s/.*action=//p" | sed -n "s/%20/ /pg"`
+ARG=`echo "$QUERY_STRING" | sed -n "s/.*action=//p"`
 echo "$ARG"
 /etc/init.d/network "$ARG"
 cat <<EOF
index b4e956d5fe4921936a54bec032210b0129d63c56..02c4fd7ea0025d9b19f33029760c378ac31c8a9e 100644 (file)
@@ -166,7 +166,7 @@ function onClickApply() {
     if (document.network.dhcp.value == "yes") {
 
        if (dhcp = "no") {
-           // disable network-state service and endable network service
+           // disable network-static service and endable network service
            downloadUrl("/cgi-bin/network-static.cgi?action=disable",GenericReturn);
            downloadUrl("/cgi-bin/network-static.cgi?action=stop",GenericReturn);