Discuz!X修复门户下载图片换行丢失BUG

Discuz!X门户文章,点击“下载远程图片”图标时换行丢失。

打开source/include/portalcp/portalcp_upload.php文件:

查找:
$string = str_replace(array(“\r”, “\n”, “\r\n”), ”, addcslashes($string, ‘/”\\\”));

上面加:
$string = str_replace(“\n”, ‘
‘, $string);

转载请注明出处:https://www.onexin.net/discuzx-portal-downremoteimg-bug/

随机文章:

1、C#中不同类的类型详解
https://www.onexin.net/different-type-of-class-in-c-detailed/

2、“创意”的知识产权保护问题
https://www.onexin.net/creative-intellectual-property-protection/

3、Discuz!Q 升级 v2.3.210202 版本后,进行红蓝主题切换时报错 Warning: shell_exec() has been disabled for security reasons in 如何解决?
https://www.onexin.net/discuzq-v2-3-210202-warning-shell_exec-ha/

4、Taro 编译分为 dev 和 build 模式
https://www.onexin.net/taro-dev-build/

5、Java随机一注双色球代码
https://www.onexin.net/the-java-random-a-note-color-ball-code/

Leave a Reply