crx349 发表于 2019-10-27 03:45:53

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]
查看完整版本: HTTPS下 登录提示 301 Moved Permanently 修复方案