Fox 发表于 2019-7-31 17:17

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

解决方法如下。
文件 \source\include\portalcp\portalcp_article.php 第73、77行。 源文件为:
if(substr($_GET['url'], 0, 7) !== 'http://') {
                $_GET['url'] = '';
      }

      if(substr($_GET['fromurl'], 0, 7) !== 'http://' ) {
                $_GET['fromurl'] = '';
      }修改为下面的if(substr($_GET['url'], 0, 7) !== 'http://' && substr($_GET['url'], 0, 8) !== 'http://') {
                $_GET['url'] = '';
      }

      if(substr($_GET['fromurl'], 0, 7) !== 'http://' && substr($_GET['url'], 0, 8) !== 'http://') {
                $_GET['fromurl'] = '';
      }

页: [1]
查看完整版本: 解决 discuz x 3.4 https 门户跳转URL不跳转的问题方法