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);

随机文章:

1、ubuntu10.04配置apache+php+mysql
https://www.onexin.net/ubuntu10-04-configuring-apache-php-mysql/

2、DIV+CSS布局解决IE6、IE7、IE8样式不兼容问题
https://www.onexin.net/divcss-layout-solution-ie6-ie7-ie8-style-incompatibility-issues/

3、Supesite模板制作官方视频教程
https://www.onexin.net/supesite-templates-to-create-the-official-video-tutorials/

4、网站建设必读:seo搜索引擎优化十大误区
https://www.onexin.net/website-must-read-search-engine-optimization-top-ten-mistakes/

5、[个人潜能6B]如何让你致富
https://www.onexin.net/personal-potentials-6b-how-to-make-you-rich/

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

Leave a Reply

Your email address will not be published. Required fields are marked *