]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
ipsec: change grep for ikev2 status display.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 4 Jul 2011 19:41:31 +0000 (21:41 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 4 Jul 2011 19:41:31 +0000 (21:41 +0200)
html/cgi-bin/index.cgi
html/cgi-bin/vpnmain.cgi

index eec3f9bf361f6a1d463c4e616e16e504c05b3f0a..b325250a58e9b0d37fe316692028e71856e4050f 100644 (file)
@@ -370,7 +370,7 @@ END
                        } else {
                            foreach my $line (@status) {
                                if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||
-                                   ($line =~/ $confighash{$key}[1]\{.*INSTALLED/ ))
+                                   ($line =~/$confighash{$key}[1]\{.*INSTALLED/ ))
                                    {
                                    $active = "<table cellpadding='2' cellspacing='0' bgcolor='${Header::colourgreen}' width='100%'><tr><td align='center'><b><font color='#FFFFFF'>$Lang::tr{'capsopen'}</font></b></td></tr></table>";
                                }
index 1fa40a827db718884883b6054fd2ef81394d7e7f..177cdf4c27a798754f0f04326796c2723fcf09ea 100644 (file)
@@ -2540,7 +2540,7 @@ END
        my $active = "<table cellpadding='2' cellspacing='0' bgcolor='${Header::colourred}' width='100%'><tr><td align='center'><b><font color='#FFFFFF'>$Lang::tr{'capsclosed'}</font></b></td></tr></table>";
        foreach my $line (@status) {
            if (($line =~ /\"$confighash{$key}[1]\".*IPsec SA established/) ||
-              ($line =~ / $confighash{$key}[1]\{.*INSTALLED/))
+              ($line =~ /$confighash{$key}[1]\{.*INSTALLED/))
            {
                $active = "<table cellpadding='2' cellspacing='0' bgcolor='${Header::colourgreen}' width='100%'><tr><td align='center'><b><font color='#FFFFFF'>$Lang::tr{'capsopen'}</font></b></td></tr></table>";
            }