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

fix: use innerHTML may leads unexpected script execution #1102

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

BaiMeow
Copy link
Contributor

@BaiMeow BaiMeow commented Apr 26, 2023

When typing <meta http-equiv="refresh" content="0;http://google.com"> in the input area, the page redirects to google.com.
Changing innerHTML to innerText will fix it.

@Yidadaa Yidadaa merged commit a604644 into ChatGPTNextWeb:main Apr 26, 2023
yxl pushed a commit to yxl/ChatGPT-Next-Web that referenced this pull request May 4, 2023
fix: use innerHTML may leads unexpected script execution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants