Skip to content

Commit

Permalink
Merge pull request #25 from arpitjain099/alert-autofix-12
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 12: Reflected server-side cross-site scripting
  • Loading branch information
arpitjain099 authored Oct 20, 2024
2 parents 611af8e + 8bf43ae commit 10c9d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion End_to_end_Solutions/AOAISearchDemo/app/data/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def get_resource(resource_id: str):
try:
resource = entities_manager.get_resource(resource_id)
if resource is None:
return Response(response=f"Resource with resource_id {resource_id} not found.", status=404)
return Response(response=f"Resource with resource_id {html.escape(resource_id)} not found.", status=404)
else:
return Response(response=json.dumps(resource.to_item()), status=200)
except Exception as e:
Expand Down

0 comments on commit 10c9d0f

Please sign in to comment.