本帖最后由 AlanJia2017 于 2018-9-13 19:48 编辑
My running environment is Apache 2.4 +php 7.0.12. Every post opens without content.I found a solution in the Chinese official website.
When I switch to php5.x, everything works normally.
This problem occurs only when upgrading the existing forum. There is no problem with the new installation.
http://www.discuz.net/forum.php?mod=redirect&goto=findpost&ptid=3822300&pid=29774468
source/function/cache/cache_bbcodes.php- $search = str_replace('is', 'ies', $search);
- $replace = '\''.str_replace('{RANDOM}', '_\'.random(6).\'', str_replace('{MD5}', '_\'.md5(\'\\1\').\'', $bbcode['replacement'])).'\'';
Copy the Code
[color=rgba(0, 0, 0, 0.8)]导致这个问题的原因: 后台,界面,编辑器,新增一个discuz!码,并在替换内容处提交一个类似 {RANDOM}[color=rgba(0, 0, 0, 0.8)] 的php可执行脚本,允许的用户组随意选择几个,包含 管理员 。 然后前台发帖,帖子包含图片和文字,就能复现这个情况。 [color=rgba(0, 0, 0, 0.8)] [color=rgba(0, 0, 0, 0.8)]注意,得是在php7才出现这种情况。
|