parse_excel_echecklist.php:

Skip parsing orphan worksheet
Issue error if there are more than 100 targets in any worksheet
Save findings when you get above 1000

database.inc:
Comment out block of code to retrieve orphan findings to export to the eChecklist

setup.php:
Convert possible algorithms to lower case. (should fix bug that person on FB was seeing).
This commit is contained in:
2018-12-14 09:32:40 -05:00
parent 92cbf58145
commit a32988ed03
3 changed files with 22 additions and 9 deletions

View File

@ -70,14 +70,15 @@ EOO;
$fail = true;
}
else {
$algorithms = ["AES-256-CBC-HMAC-SHA256", "AES-256-CBC-HMAC-SHA1", "AES-256-CBC"];
if (in_array($algorithms[0], openssl_get_cipher_methods())) {
$algorithms = ["aes-256-cbc-hmac-sha256", "aec-256-cbc-hmac-sha1", "aes-256-cbc"];
$ciphers = array_map('strtolower', openssl_get_cipher_methods());
if (in_array($algorithms[0], $ciphers)) {
$idx = 0;
}
elseif (in_array($algorithms[1], openssl_get_cipher_methods())) {
elseif (in_array($algorithms[1], $ciphers)) {
$idx = 1;
}
elseif (in_array($algorithms[2], openssl_get_cipher_methods())) {
elseif (in_array($algorithms[2], $ciphers)) {
$idx = 2;
}
else {