mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2025-03-25 16:27:03 +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']);
|
$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)) {
|
if (HTML::port($cfg['location']) != HTML::standard_port($protocol)) {
|
||||||
$url .= ':' . HTML::port($cfg['location']);
|
$url .= ':' . HTML::port($cfg['location']);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user