mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 21:58:41 +00:00
chore(web): HTML::url protocol
This commit is contained in:
parent
61a35c457a
commit
678582fc47
@ -210,7 +210,7 @@ class HTML {
|
||||
}
|
||||
|
||||
$protocol = HTML::protocol($cfg['location']);
|
||||
$url = '//'.UOJConfig::$data['web'][$cfg['location']]['host'];
|
||||
$url = $protocol . '://' . UOJConfig::$data['web'][$cfg['location']]['host'];
|
||||
if (HTML::port($cfg['location']) != HTML::standard_port($protocol)) {
|
||||
$url .= ':' . HTML::port($cfg['location']);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user