From cba4d8786bf7ae9378529c111dc5d2f0c0baa50f Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Mon, 24 Jul 2017 12:26:42 +0900 Subject: [PATCH] forward using relative path. Should be safer --- .../HappyFunTimesCore/Server/HFTCaptivePortalHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTCaptivePortalHandler.cs b/Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTCaptivePortalHandler.cs index 282757c..a96cc7a 100644 --- a/Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTCaptivePortalHandler.cs +++ b/Assets/HappyFunTimes/HappyFunTimesCore/Server/HFTCaptivePortalHandler.cs @@ -103,7 +103,8 @@ bool SendCaptivePortalHTML(HttpListenerRequest req, HttpListenerResponse res, st string str = System.Text.Encoding.UTF8.GetString(content); Dictionary subs = new Dictionary(); - subs["startUrl"] = GetBaseUrl(req) + m_firstPath + "?sessionId=" + sessionId; +/// subs["startUrl"] = GetBaseUrl(req) + m_firstPath + "?sessionId=" + sessionId; + subs["startUrl"] = m_firstPath + "?sessionId=" + sessionId; subs["sessionId"] = sessionId; str = HFTUtil.ReplaceParamsFlat(str, subs); m_log.Info("SCPH: Sending " + path);