Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebUI: migrate away from inline HTML code #21163

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

Chocobo1
Copy link
Member

@Chocobo1 Chocobo1 commented Aug 7, 2024

innerHTML & outerHTML setter will more or less evaluate the value which could be used to inject malicious code. So replace them with safer alternatives.

@Chocobo1 Chocobo1 added WebUI WebUI-related issues/changes Code cleanup Clean up the code while preserving the same outcome labels Aug 7, 2024
@Chocobo1 Chocobo1 added this to the 5.1 milestone Aug 7, 2024
@Chocobo1 Chocobo1 requested a review from a team August 7, 2024 18:37
`innerHTML` &  `outerHTML` setter will more or less evaluate the value which could be used to
inject malicious code. So replace them with safer alternatives.
@Chocobo1 Chocobo1 merged commit 5afeecb into qbittorrent:master Aug 10, 2024
14 checks passed
@Chocobo1 Chocobo1 deleted the webui_innerhtml branch August 10, 2024 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code cleanup Clean up the code while preserving the same outcome WebUI WebUI-related issues/changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants