mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:08:42 +00:00
revert: 387fdf968b
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
df6024c99f
commit
6e9254e008
@ -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 != '/') {
|
||||
|
Loading…
Reference in New Issue
Block a user