联系官方销售客服

1835022288

028-61286886

求助 版主:官方研发技术组
后台类模板百度编辑器自动过滤问题开发了一个插件用到了后台类在
类型:迅睿CMS 更新时间:2020-05-06 21:11:57

后台Table类模板百度编辑器自动过滤问题

开发了一个插件,用到了后台Table类,在数据提交的模板info_post.html里用了一个百度编辑器(用开发者工具生成的字段HTML代码,生成时也勾选了不过滤xss),提交数据时会自动xss过滤,导致字体颜色加粗等设置都失效,请问大神该如何解决?

 <?php echo dr_fieldform('{"name":"内容","fieldname":"content","ismain":"1","fieldtype":"Ueditor","setting":{"option":{"down_img":"0","down_img_type":"0","watermark":"0","show_bottom_boot":"0","mini":"0","autofloat":"0","autoheight":"0","page":"0","mode":"1","tool":"\'bold\', \'italic\', \'underline\'","mode2":"1","tool2":"\'bold\', \'italic\', \'underline\'","mode3":"1","tool3":"\'bold\', \'italic\', \'underline\'","attachment":"1","image_reduce":"","value":"","width":"100%","height":"300","css":""},"validate":{"required":"1","pattern":"","errortips":"","xss":"1","check":"","filter":"","formattr":"","tips":""}},"ismember":"1"}', $content);?>


回帖
  • 迅睿粉丝
    #1楼    迅睿粉丝
    2020-05-06 21:05:30
    iPhone手机 0
    入库的时候做处理,把变量改成$_POST接收
    满意答案
  • 迅睿粉丝
    #2楼    迅睿粉丝
    2020-05-06 21:11:57
    Chrome 0
    迅睿框架创始人:已解决问题!按照1楼的方法即可。