HTTPS下 登录提示 301 Moved Permanently 修复方案
打开文件upload/uc_client/client.php搜索:
$port = !empty($matches['port']) ? $matches['port'] : 80;
修改为:
$port = !empty($matches['port']) ? $matches['port'] : ($matches['scheme'] == 'https' ? 443 : 80);
搜索:
if(!$fp = @fsocketopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout)) {
修改为:
if(!$fp = @fsocketopen(($scheme == 'https' ? 'ssl' : $scheme).'://'.($scheme == 'https' ? $host : ($ip ? $ip : $host)), $port, $errno, $errstr, $timeout)) {
页:
[1]