Revision 738fab3d
Added by Jim Pingle over 11 years ago
usr/local/www/system_certmanager.php | ||
---|---|---|
302 | 302 |
}else if (($reqdfields[$i] != "descr") && preg_match("/[\!\@\#\$\%\^\(\)\~\?\>\<\&\/\\\,\.\"\']/", $_POST["$reqdfields[$i]"])) |
303 | 303 |
array_push($input_errors, "The field '" . $reqdfieldsn[$i] . "' contains invalid characters."); |
304 | 304 |
} |
305 |
|
|
306 |
if (isset($_POST["keylen"]) && !in_array($_POST["keylen"], $cert_keylens)) |
|
305 |
|
|
306 |
if (($pconfig['method'] != "external") && isset($_POST["keylen"]) && !in_array($_POST["keylen"], $cert_keylens))
|
|
307 | 307 |
array_push($input_errors, gettext("Please select a valid Key Length.")); |
308 |
if (!in_array($_POST["digest_alg"], $openssl_digest_algs)) |
|
308 |
if (($pconfig['method'] != "external") && !in_array($_POST["digest_alg"], $openssl_digest_algs))
|
|
309 | 309 |
array_push($input_errors, gettext("Please select a valid Digest Algorithm.")); |
310 | 310 |
|
311 |
if (isset($_POST["csr_keylen"]) && !in_array($_POST["csr_keylen"], $cert_keylens)) |
|
311 |
if (($pconfig['method'] == "external") && isset($_POST["csr_keylen"]) && !in_array($_POST["csr_keylen"], $cert_keylens))
|
|
312 | 312 |
array_push($input_errors, gettext("Please select a valid Key Length.")); |
313 |
if (!in_array($_POST["csr_digest_alg"], $openssl_digest_algs)) |
|
313 |
if (($pconfig['method'] == "external") && !in_array($_POST["csr_digest_alg"], $openssl_digest_algs))
|
|
314 | 314 |
array_push($input_errors, gettext("Please select a valid Digest Algorithm.")); |
315 | 315 |
} |
316 | 316 |
|
Also available in: Unified diff
Fix issue with CSR generation. Ticket #2820