mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 20:08:42 +00:00
chore(web): HTML::url protocol
This commit is contained in:
parent
61a35c457a
commit
678582fc47
@ -210,9 +210,9 @@ 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']);
|
||||||
}
|
}
|
||||||
if ($param) {
|
if ($param) {
|
||||||
$url .= $path . '?' . HTML::query_string_encode($param);
|
$url .= $path . '?' . HTML::query_string_encode($param);
|
||||||
|
Loading…
Reference in New Issue
Block a user