Skip to content

Commit

Permalink
Fix for REST API service did not return JSON #15889
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Aug 7, 2017
1 parent f8bc694 commit 16aff99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion w3af/core/ui/api/resources/scans.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def start_scan():
#
# Now that we know that the profile is valid I verify the scan target info
#
if not len(target_urls):
if target_urls is None or not len(target_urls):
abort(400, 'No target URLs specified')

for target_url in target_urls:
Expand Down

0 comments on commit 16aff99

Please sign in to comment.