富文本编辑器上传图片内容,jackson解析报错

Vue 未结 2 200
jayden
jayden 剑者 2020-04-25 00:09

一、该问题的重现步骤是什么?

1. 富文本上传图片

2. 将内容传递到后端解析,参数内容

{"newsType":2,"newsTitle":"56102","newsContent":"

","><>><><>二、你期待的结果是什么?实际看到的又是什么?<>富文本特殊字符也能正常提交<><>三、你正在使用的是什么产品,什么版本?在什么操作系统上?<>><><>四、请提供详细的错误堆栈信息,这很重要。<>< src title="1587744470768976.png" alt="image.png">

消息不能读取:JSON parse error: Unexpected character ('\' (code 92)): was expecting comma to separate Object entries; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('\' (code 92)): was expecting comma to separate Object entries

五、若有更多详细信息,请在下面提供。

image.png

最终提交内容:

{"newsType":1,"newsTitle":"爱仕达","newsContent":"

安达市大所大所多

","createUserName":"","createTime":"","1587730995634_80570":[],"$newsType":"评价资讯","$1587730995634_80570":""}">http://ctpspone.oss-cn-beijing.aliyuncs.com/upload/20200425/13491a27aeea4d437d5d8d24fb0b36b1.png\">

","createUserName":"","createTime":"","1587730995634_80570":[],"$newsType":"评价资讯","$1587730995634_80570":""}

添加失败。


2条回答
  • 要做xss放行

    image.png

    0 讨论(0)
  • 2天前

    已经放行了,为啥还是不好使呢

    0 讨论(0)
提交回复