<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

软件频道织梦编辑器重新编辑乱码问题解决方法,织梦的安全过滤器

时间:2020-12-15

文章一开始发布时编辑器看是正常的,等发布后文章要二次编辑室就出问题了, 文章里的样式 如:<p  style="margin: 0px; padding: 0px; ">aaaaaaaa</p> 这样的等二次编辑室 会出现图上的问题

 style  的st不见了 而且引号“”,和尖括号 <x> 全变成字符显示在源码切换的里面

 

下图 数据库存储正常



织梦安全过滤器 解决方法 适当修改以下代码,(特别是style这怎么可以过滤。。。。无语)




这3个文件大概78行左右处,织梦58测试了一下,只需要修改 后面两个文件即可 改为 $replacement = substr($ra[$i], 0, 10); 其中后面的 10是截取前10个字符,也就是基本不过滤¥ra1里面的字符了,困扰很长时间的问题终于解决了!


 

1 $ra1 array('javascript''vbscript''expression''applet''meta''xml''blink''link''style''script''embed''object''iframe''frame''frameset''ilayer''layer''bgsound''title''base');
2       $ra2 array('onabort''onactivate''onafterprint''onafterupdate''onbeforeactivate''onbeforecopy''onbeforecut''onbeforedeactivate''onbeforeeditfocus''onbeforepaste''onbeforeprint''onbeforeunload''onbeforeupdate''onblur''onbounce''oncellchange''onchange''onclick''oncontextmenu'
0