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、延伸阅读:运营一个商业网站要多少钱
https://www.onexin.net/further-reading-how-much-do-a-commercial-site/

2、Magento升级1.6.0.0 alpha1(笔记)
https://www.onexin.net/magento-upgrade-1-6-0-0-alpha1-notes/

3、Discuz!Q 如何更改域名domain?
https://www.onexin.net/discuzq-domain/

4、js中SetInterval与setTimeout用法
https://www.onexin.net/js-in-setinterval-and-use-settimeout/

5、Magento语言批量在线翻译平台(原创)
https://www.onexin.net/magento-language-pack-volume-translator/

Leave a Reply