mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-10-31 22:05:26 +01:00 
			
		
		
		
	Fix flat JSON file
PR #2140 contains a bug when handling flat JSON files. FIRST_FINDING should only be set to true in the case of structured JSON output, since it is only in that case that fileout_insert_warning() appends a comma to the JSON file. This commit fixes the problem.
This commit is contained in:
		| @@ -1313,8 +1313,8 @@ fileout_insert_warning() { | ||||
|           else | ||||
|                echo -e ", " >>"$JSONFILE" | ||||
|           fi | ||||
|           FIRST_FINDING=true | ||||
|      fi | ||||
|      FIRST_FINDING=true | ||||
| } | ||||
| 
 | ||||
| fileout_csv_finding() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Cooper
					David Cooper