netexternal.cgi: Fix display of DNS1 and DNS2
[people/teissler/ipfire-2.x.git] / html / cgi-bin / netexternal.cgi
index cd29d5da02cc85918a012b6d7a41f56504760f69..156ef2418c604f429f66390e9ef136aa267e1eaa 100644 (file)
@@ -83,8 +83,8 @@ if ( $querry[0] ne~ ""){
 
                        &General::readhash("${General::swroot}/dhcpc/dhcpcd-$netsettings{'RED_DEV'}.info", \%dhcpinfo);
 
-                       my $DNS1=`echo $dhcpinfo{'domain_name_servers'} | cut -f 1 -d ,`;
-                       my $DNS2=`echo $dhcpinfo{'domain_name_servers'} | cut -f 2 -d ,`;
+                       my $DNS1=`echo $dhcpinfo{'domain_name_servers'} | cut -f 1 -d " "`;
+                       my $DNS2=`echo $dhcpinfo{'domain_name_servers'} | cut -f 2 -d " "`;
 
                        my $lsetme=0;
                        my $leasetime="";