[CUWiN-Dev] config.cgi patch

Bill Comisky bcomisky at pobox.com
Wed Mar 30 17:29:20 CST 2005


Attached is a patch to extras/var/www/config.cgi from src/boot-image. I 
quoted the input to str_trim.  As it was, it only was operating on the 
first nameserver listed in the form if >1 nameserver was provided (space 
separated), giving me this output:

Processing input.
local: 216.231.41.2: bad variable name Attempting reconfigure.
Reconfiguration complete.

bill

--
Bill Comisky
bcomisky at pobox.com
-------------- next part --------------
--- extras/var/www/config.cgi	Mon Feb 14 03:57:49 2005
+++ extras/var/www/config.cgi	Wed Mar 30 11:13:33 2005
@@ -60,7 +60,7 @@
 		new=$(echo $cleansed | 
 		    sed -n -e "s/.*$var=\([^&]*\).*/\1/p")
 
-		new=$(str_trim $new)
+		new=$(str_trim "$new")
 
 		if [ "$new" = "" ] ;then
 			new=$val


More information about the CU-Wireless-Dev mailing list