Skip to content

Commit

Permalink
Update DASTScan.java
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalhcl-5960 committed Jan 24, 2024
1 parent 14110ff commit 811886c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ public void run() throws ScannerException, InvalidTargetException, JSONException

private JSONObject creatingJSONForProperties(Map<String, String> params) throws JSONException {
JSONObject json = new JSONObject(params);
return json.put(SCAN_CONFIGURATION, createScanConfiguration(json));
if(!params.containsKey(SCAN_FILE_ID)) {
return json.put(SCAN_CONFIGURATION, createScanConfiguration(json));
} else {
return json;
}
}

private JSONObject createScanConfiguration(JSONObject json) throws JSONException {
Expand Down

0 comments on commit 811886c

Please sign in to comment.