Fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-09-20 14:02:23 +08:00
parent e77fe16199
commit 919c1aa21f
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -90,11 +90,11 @@ class HTML {
$param = array_merge($param, $config['params']); $param = array_merge($param, $config['params']);
} }
$url = UOJConfig::$data['web'][$config['location']]['protocol'].'://'.UOJConfig::$data['web'][$config['location']]['host']; // $url = UOJConfig::$data['web'][$config['location']]['protocol'].'://'.UOJConfig::$data['web'][$config['location']]['host'];
if ((UOJConfig::$data['web'][$config['location']]['protocol'] === "http" && UOJConfig::$data['web'][$config['location']]['port'] == 80) || (UOJConfig::$data['web'][$config['location']]['protocol'] === "https" && UOJConfig::$data['web'][$config['location']]['port'] == 443)) { // if ((UOJConfig::$data['web'][$config['location']]['protocol'] === "http" && UOJConfig::$data['web'][$config['location']]['port'] == 80) || (UOJConfig::$data['web'][$config['location']]['protocol'] === "https" && UOJConfig::$data['web'][$config['location']]['port'] == 443)) {
} else { // } else {
$url .= ':'.UOJConfig::$data['web'][$config['location']]['port']; // $url .= ':'.UOJConfig::$data['web'][$config['location']]['port'];
} // }
if ($param) { if ($param) {
$url .= $path.'?'.HTML::query_string_encode($param); $url .= $path.'?'.HTML::query_string_encode($param);
} else { } else {