Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Conversation

@WirelessLife
Copy link
Collaborator

Potential fix for https://github.com/microsoft/AcademicContent/security/code-scanning/15

To fix the problem, the user-supplied comments value should be encoded before being appended to the URL as a query parameter. The best way to do this in JavaScript is to use the built-in encodeURIComponent function, which safely encodes all special characters so that the value can be safely included in a URL query string. The change should be made in the file archive/Azure Blockchain Service/Resources/public/scripts/functions.js, specifically on line 23, where the comments variable is appended to the URL. No new imports are needed, as encodeURIComponent is a standard JavaScript function.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…as HTML

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@WirelessLife WirelessLife marked this pull request as ready for review August 20, 2025 18:48
@WirelessLife WirelessLife merged commit e0e685d into main Aug 20, 2025
8 checks passed
@WirelessLife WirelessLife deleted the alert-autofix-15 branch August 20, 2025 18:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants