revert: 387fdf968b
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-19 11:58:04 +08:00
parent df6024c99f
commit 6e9254e008
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -209,11 +209,11 @@ class HTML {
$param['_token'] = crsf_token();
}
// $url = '//'.UOJConfig::$data['web'][$config['location']]['host'];
// if (HTML::port($cfg['location']) != HTML::standard_port($protocol)) {
// $url .= ':'.HTML::port($cfg['location']);
// }
$url = '';
$protocol = HTML::protocol($cfg['location']);
$url = '//'.UOJConfig::$data['web'][$cfg['location']]['host'];
if (HTML::port($cfg['location']) != HTML::standard_port($protocol)) {
$url .= ':'.HTML::port($cfg['location']);
}
if ($param) {
$url .= $path . '?' . HTML::query_string_encode($param);
} elseif ($path != '/') {