mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-26 05:48:41 +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();
|
$param['_token'] = crsf_token();
|
||||||
}
|
}
|
||||||
|
|
||||||
// $url = '//'.UOJConfig::$data['web'][$config['location']]['host'];
|
$protocol = HTML::protocol($cfg['location']);
|
||||||
// if (HTML::port($cfg['location']) != HTML::standard_port($protocol)) {
|
$url = '//'.UOJConfig::$data['web'][$cfg['location']]['host'];
|
||||||
// $url .= ':'.HTML::port($cfg['location']);
|
if (HTML::port($cfg['location']) != HTML::standard_port($protocol)) {
|
||||||
// }
|
$url .= ':'.HTML::port($cfg['location']);
|
||||||
$url = '';
|
}
|
||||||
if ($param) {
|
if ($param) {
|
||||||
$url .= $path . '?' . HTML::query_string_encode($param);
|
$url .= $path . '?' . HTML::query_string_encode($param);
|
||||||
} elseif ($path != '/') {
|
} elseif ($path != '/') {
|
||||||
|
Loading…
Reference in New Issue
Block a user