解决 discuz x 3.4 https 门户跳转URL功能不跳转的问题方法

[复制链接]
查看2522 | 回复0 | 2020-2-23 15:36 | 显示全部楼层 |阅读模式
解决方法如下。
文件 \source\include\portalcp\portalcp_article.php 第73、77行。 源文件为:
  1. if(substr($_GET['url'], 0, 7) !== 'http://') {
  2.                 $_GET['url'] = '';
  3.         }
  4.         if(substr($_GET['fromurl'], 0, 7) !== 'http://' ) {
  5.                 $_GET['fromurl'] = '';
  6.         }
复制代码
修改为下面的
  1. if(substr($_GET['url'], 0, 7) !== 'http://' && substr($_GET['url'], 0, 8) !== 'https://') {
  2.                 $_GET['url'] = '';
  3.         }
  4.         if(substr($_GET['fromurl'], 0, 7) !== 'http://' && substr($_GET['url'], 0, 8) !== 'https://') {
  5.                 $_GET['fromurl'] = '';
  6.         }
复制代码

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-4-30