Move code in wrong place

This commit is contained in:
Jamie Cameron
2007-12-11 01:33:51 +00:00
parent 7ade6f9317
commit 196b34370a
2 changed files with 1 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ require './webmin-lib.pl';
&error_setup($text{'newkey_err'});
# Validate inputs and create the key
$in{'newfile'} || return $text{'newkey_efile'};
$err = &parse_ssl_key_form(\%in, $in{'newfile'});
&error($err) if ($err);

View File

@@ -1290,7 +1290,6 @@ local %in = %$in;
# Validate inputs
$in{'commonName_def'} || $in{'commonName'} =~ /^[A-Za-z0-9\.\-\*]+$/ ||
return $text{'newkey_ecn'};
$in{'newfile'} || return $text{'newkey_efile'};
$in{'size_def'} || $in{'size'} =~ /^\d+$/ || return $text{'newkey_esize'};
$in{'days'} =~ /^\d+$/ || return $text{'newkey_edays'};
$in{'countryName'} =~ /^\S\S$/ || return $text{'newkey_ecountry'};