Skip to content

Commit

Permalink
Ref #8 Fixed Reflected server-side cross-site scripting
Browse files Browse the repository at this point in the history
Signed-off-by: Krzysztof Kaźmierczyk <kazm@ibm.com>
  • Loading branch information
kkazmierczyk committed Oct 31, 2024
1 parent 95eeff9 commit 50f4e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javacore_analyser_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def delete(path):
report_location = os.path.normpath(os.path.join(reports_dir, path))
if not report_location.startswith(reports_dir):
logging.error("Deleted report in report list. Not deleting")
return "Cannot delete the report. The report <b>" + path + "</b> does not exist", 503
return "Cannot delete the report.", 503
shutil.rmtree(report_location)

return redirect("/")
Expand Down

0 comments on commit 50f4e60

Please sign in to comment.