Skip to content

Commit

Permalink
correcting rogue url_scan flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Benzoni committed Jun 27, 2024
1 parent f289aef commit f816a17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ def fingerprint(request):
if request.method == 'POST':
url = request.form['url']
run_urlscan = request.form['run_urlscan'] if 'run_urlscan' in request.form else False
internal_only = request.form['run_urlscan'] if 'internal_only' in request.form else False
internal_only = request.form['internal_only'] if 'internal_only' in request.form else False
elif request.method == 'GET':
url = request.args.get('url')
run_urlscan = request.args['run_urlscan'] if 'run_urlscan' in request.args else False
internal_only = request.args['run_urlscan'] if 'internal_only' in request.args else False
internal_only = request.args['internal_only'] if 'internal_only' in request.args else False
# Validation checks for internal_only and run_urlscan
internal_only = bool(internal_only)
run_urlscan = bool(run_urlscan)
Expand Down

0 comments on commit f816a17

Please sign in to comment.