-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use encodeURIComponent to prevent XSS
- Updated the game mode and room ID parameters to use `encodeURIComponent` before including them in URLs. - This change ensures that special characters are properly encoded, preventing potential XSS attacks. - Applied this update to the room creation and joining logic in `home.ejs` and `play-now.ejs`. This fix enhances the security of the application by preventing cross-site scripting (XSS) vulnerabilities.
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters