diff --git a/web/app/models/HTML.php b/web/app/models/HTML.php
index 06ec512..6fbb6b3 100644
--- a/web/app/models/HTML.php
+++ b/web/app/models/HTML.php
@@ -210,9 +210,9 @@ 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']);
+ $url .= ':' . HTML::port($cfg['location']);
}
if ($param) {
$url .= $path . '?' . HTML::query_string_encode($param);