]> git.ipfire.org Git - people/jschlag/ipfire-2.x.git/commitdiff
Fix error
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Thu, 18 Feb 2021 16:00:57 +0000 (17:00 +0100)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Thu, 18 Feb 2021 16:00:57 +0000 (17:00 +0100)
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
html/cgi-bin/vpn-cert.cgi

index dbf8c4d06a31482df90494845c0561a18eeae6c4..42bc50105646db550646495f5364fcaa8e6e69d5 100644 (file)
@@ -65,12 +65,12 @@ my $tmpl = HTML::Template->new(
 &Header::getcgihash(\%cgiparams);
 
 
-if (($cgiparams{'action'} eq "showcert" ||
-    $cgiparams{'action'} eq "showCaCert" ||
-    $cgiparams{'action'} eq "showRootCert" ||
-    $cgiparams{'action'} eq "showHostCert" )) {
+if (($cgiparams{'ACTION'} eq "showcert" ||
+    $cgiparams{'ACTION'} eq "showCaCert" ||
+    $cgiparams{'ACTION'} eq "showRootCert" ||
+    $cgiparams{'ACTION'} eq "showHostCert" )) {
 
-        my $action = $cgiparams{'action'};
+        my $action = $cgiparams{'ACTION'};
         my $file = "";
 
         if ($action eq "showRootCert"){