From 114b799aa8e90ac3571896bb2d56159e4678cc89 Mon Sep 17 00:00:00 2001 From: mdp19900707 Date: Mon, 16 May 2016 17:51:06 +0800 Subject: [PATCH] line 12 apass=$secondvalue -----> apass=$firstvalue --- wrtnode/webwifi/files/www/cgi-bin/setpass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrtnode/webwifi/files/www/cgi-bin/setpass b/wrtnode/webwifi/files/www/cgi-bin/setpass index 29c4fdc..a6d7c8e 100755 --- a/wrtnode/webwifi/files/www/cgi-bin/setpass +++ b/wrtnode/webwifi/files/www/cgi-bin/setpass @@ -9,7 +9,7 @@ if [ -n "$QUERY_STRING" ]; then firstvalue=`echo $firstexp | cut -d'=' -f 2` if [ "$firstkey"x = "password"x -o "$firstkey"x = "passwd"x ]; then - apass=$secondvalue + apass=$firstvalue else echo "{\"result\"=\"error\",\"message\"=\"Please input the right format like password=xxxx\"}" exit 1 @@ -28,4 +28,4 @@ echo "{\"result\"=\"success\",\"message\"=\"operation finished\"}" # Restart network service /etc/init.d/network restart 1>&- 2>&- -exit 0 \ No newline at end of file +exit 0