1
1
mirror of https://github.com/renbaoshuo/S2OJ.git synced 2025-03-28 03:17:01 +00:00

revert: 387fdf968b7a629f319b552656bd91a4439e771a

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

@ -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 != '/') {