From 678582fc47797b68412981762910a47cfe6c8cd3 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 4 Dec 2022 16:53:02 +0800 Subject: [PATCH] chore(web): HTML::url protocol --- web/app/models/HTML.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);