Skip to content

Commit 624adba

Browse files
committed
Consistent downcase comparison
1 parent 19beafe commit 624adba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/nessus.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,15 +1261,15 @@ def cmd_nessus_scan_export(*args)
12611261
case args.length
12621262
when 2
12631263
scan_id = args[0]
1264-
format = args[1].downcase
1264+
format = args[1]
12651265
else
12661266
print_status("Usage: ")
12671267
print_status("nessus_scan_export <scan ID> <export format>")
12681268
print_status("The available export formats are Nessus, HTML, PDF, CSV, or DB")
12691269
print_status("Use nessus_scan_list to list all available scans with their corresponding scan IDs")
12701270
return
12711271
end
1272-
if format.in?(['nessus','html','pdf','csv','db'])
1272+
if format.downcase.in?(['nessus','html','pdf','csv','db'])
12731273
export = @n.scan_export(scan_id, format)
12741274
if export["file"]
12751275
file_id = export["file"]

0 commit comments

Comments
 (0)