Skip to content

Commit

Permalink
Fix code scanning alert no. 14: Reflected server-side cross-site scri…
Browse files Browse the repository at this point in the history
…pting

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 760c74a commit 7611246
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 @@ -373,7 +373,7 @@ def get_access_rule(rule_id: str):
try:
access_rule = permissions_manager.get_access_rule(rule_id)
if access_rule is None:
return Response(response=f"Access rule with rule_id {rule_id} not found.", status=404)
return Response(response=f"Access rule with rule_id {html.escape(rule_id)} not found.", status=404)
else:
return Response(response=json.dumps(access_rule.to_item()), status=200)
except Exception as e:
Expand Down

0 comments on commit 7611246

Please sign in to comment.