Forgot password?
 Create new account
View 220|Reply 8

[已解决] 引用字符串< 与 > 之间的字符消失

[Copy link]

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2023-5-16 17:47:43 |Read mode
Last edited by hbghlyj at 2025-3-2 16:11:00pid=53033引用字符串$<\epsilon$消失:

output.gif

701

Threads

110K

Posts

910K

Credits

Credits
94167
QQ

Show all posts

kuing Posted at 2023-5-16 18:43:39
准确来说应该是 < 与 > 之间的字符消失了。
估计是被当作一个 html 标记了吧

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2023-5-16 19:06:54
kuing 发表于 2023-5-16 11:43
准确来说应该是 < 与 > 之间的字符消失了。
估计是被当作一个 html 标记了吧 ...
已报告 gitee.com/Discuz/DiscuzX/issues/I73M78

701

Threads

110K

Posts

910K

Credits

Credits
94167
QQ

Show all posts

kuing Posted at 2023-5-16 19:27:49
在 < 与 > 之间有空格,没事;
在 <与> 之间无空格,消失;
单 <且  后面无空格看会消失到哪。

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2023-5-29 21:28:50
kuing 发表于 2023-5-16 12:27
在 < 与 > 之间有空格,没事;
在  之间无空格,消失;
湖中沉 changed issue state from 待办的 to 已取消
2 days ago

属于安全过滤,不是BUG

Comment

🤭  Posted at 2023-5-29 22:00

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2023-9-26 06:17:48
Last edited by hbghlyj at 2023-11-8 19:17:00
kuing 发表于 2023-5-16 11:43
准确来说应该是 < 与 > 之间的字符消失了。
找到了导致问题的代码:function_post.php的messagecutstr

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2023-9-27 07:22:06
Last edited by hbghlyj at 2023-11-8 19:18:00
第593行把strip_tags删除后,开启html的帖子只能引用到一些html代码: Screenshot 2023-09-27 at 07-20-02 Adobe Acrobat Pro DC 破解 - 其他软件 - 悠闲数.png

所以我把这里的strip_tags分了情况
使得 当帖子开启html时 经过strip_tags这步,当 帖子未开html时 跳过strip_tags这步。

手机版Mobile version|Leisure Math Forum

2025-4-20 22:00 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list