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

支持腾讯内容安全的策略 #738

Merged
merged 1 commit into from
Aug 6, 2024
Merged

支持腾讯内容安全的策略 #738

merged 1 commit into from
Aug 6, 2024

Conversation

zhheo
Copy link
Contributor

@zhheo zhheo commented Aug 3, 2024

服务端我还没法测试,所以麻烦测一下啦

@@ -334,6 +334,11 @@ const fn = {
throw new Error(`参数"${requiredParam}"不合法`)
}
}
},
// 移除表情内容,用于内容安全检测
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不建议,如此以来攻击者可以通过 <img alt="不当的内容" src="不当的图片" class="tk-owo-emotion"> 来绕过安全检测

@imaegoo imaegoo merged commit 2c91b1d into twikoojs:main Aug 6, 2024
1 check passed
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