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

发送 ForwardMessage 没有对 Preview 等属性进行 xml 替换字符处理,导致客户端收到无法解析 #2241

Closed
cssxsh opened this issue Sep 9, 2022 · 0 comments
Labels
M 优先级: 主要 s:core 子系统: mirai-core t:bug 类型: bug
Milestone

Comments

@cssxsh
Copy link
Contributor

cssxsh commented Sep 9, 2022

问题描述

当 ForwardMessage 的消息单元中 包含有 <, > 等需要转义的 xml 关键字 时,
ForwardMessage.DisplayStrategy 有可能在构造 preview 时将其放入,由于没有正确处理,
导致 xml 消息结构错误,客户端收到无法解析

复现

preview 中放入 需要转义的字符

mirai-core 版本

2.13.0-M1

bot-protocol

ANDROID_PHONE

其他组件版本

No response

系统日志

No response

网络日志

No response

补充信息

No response

@Him188 Him188 added t:bug 类型: bug M 优先级: 主要 s:core 子系统: mirai-core labels Sep 9, 2022
@Him188 Him188 added this to the 2.14 milestone Sep 9, 2022
@Him188 Him188 modified the milestones: 2.14, 2.14.0-RC Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M 优先级: 主要 s:core 子系统: mirai-core t:bug 类型: bug
Projects
None yet
Development

No branches or pull requests

2 participants