2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-11-22 06:13:42 +01:00

fix target level verification check

This commit is contained in:
Julien Vehent 2014-10-11 23:08:35 -04:00
parent a749742ff3
commit 26c7b0e0d7

View File

@ -303,7 +303,7 @@ def process_results(data, level=None, do_json=False):
json_output['level'] = evaluate_all(results)
json_output['target_level'] = level
json_output['compliance'] = False
if json_output['level'] == json_output['target_level']:
if json_output['target_level'] in json_output['level']:
json_output['compliance'] = True
if operator:
json_output['operator'] = operator