allthebest 發表於 2019-6-9 20:05:05

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

<font color="#4d4d4d"><font face="&amp;quot">解决方法如下。 </font></font><font color="#4d4d4d"><font face="&amp;quot"><br /></font></font><br /><font color="#4d4d4d"><font face="&amp;quot">文件 \source\include\portalcp\portalcp_article.php 第73、77行。 源文件为:</font></font><br /><br /><font color="#4d4d4d"><font face="&amp;quot"><br /></font></font><br /><ol><li>if(substr($_GET['url'], 0, 7) !== 'http://') {<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $_GET['url'] = '';<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; }<br /><li> <br /><li>&nbsp; &nbsp; &nbsp; &nbsp; if(substr($_GET['fromurl'], 0, 7) !== 'http://' ) {<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $_GET['fromurl'] = '';<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; }</ol><br /><br /><font color="#4d4d4d"><font face="&amp;quot">修改为下面的</font></font><br /><font color="#4d4d4d"><font face="&amp;quot"><br /></font></font><br /><ol><li>if(substr($_GET['url'], 0, 7) !== 'http://' &amp;&amp; substr($_GET['url'], 0, 8) !== 'https://') {<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $_GET['url'] = '';<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; }<br /><li> <br /><li>&nbsp; &nbsp; &nbsp; &nbsp; if(substr($_GET['fromurl'], 0, 7) !== 'http://' &amp;&amp; substr($_GET['url'], 0, 8) !== 'https://') {<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $_GET['fromurl'] = '';<br /><li>&nbsp; &nbsp; &nbsp; &nbsp; }</ol><br /><br />4d4d4d<em>, </em>quot<em>, </em>解决<em>, </em>方法

耗子 發表於 2019-6-10 09:53:49

&nbsp;&nbsp;收藏了

wonderful 發表於 2019-6-11 10:37:48

收藏了,谢谢分享

ghz0433 發表於 2019-6-13 18:42:23

这个好。。。。。。

版砖设计 發表於 2019-6-14 18:35:43

厉害厉害

元归 發表於 2019-6-15 09:24:16

棒棒。谢谢

站长 發表於 2019-6-16 14:31:14

感谢 学习一下

yehui2512 發表於 2019-7-6 23:32:10

收藏了 感谢 学习一下

yehui2512 發表於 2019-7-8 21:57:15

收藏了,谢谢分享

xaxqshw 發表於 2019-8-16 22:14:34

收藏了,谢谢分享
頁: [1]
查看完整版本: 解决 discuz x 3.4 https 门户跳转URL功能不跳转的问题方法