]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
ovpnmain.cgi: Fix comparison operators
authorTimo Eissler <timo.eissler@ipfire.org>
Tue, 7 Jun 2022 09:16:31 +0000 (11:16 +0200)
committerTimo Eissler <timo.eissler@ipfire.org>
Tue, 7 Jun 2022 09:16:31 +0000 (11:16 +0200)
html/cgi-bin/ovpnmain.cgi

index 362059f9404284c3d950c2732989b45cab774991..5b90fc44fbdbbbd6a9190064ad6d33a5fd529cdd 100644 (file)
@@ -4485,10 +4485,10 @@ if ($cgiparams{'TYPE'} eq 'net') {
 
    $confighash{$key}[42] = 'HOTP/T30/6';
        $confighash{$key}[43] = $cgiparams{'OTP_STATE'};
-       if (($confighash{$key}[43] == 'on') && ($confighash{$key}[44] == '')) {
+       if (($confighash{$key}[43] eq 'on') && ($confighash{$key}[44] eq '')) {
                my @otp_secret = &General::system_output("/usr/bin/openssl", "rand", "-hex", "20");
                $confighash{$key}[44] = $otp_secret[0];
-       } elsif ($confighash{$key}[43] == '') {
+       } elsif ($confighash{$key}[43] eq '') {
                $confighash{$key}[44] = '';
        }