Skip to content

Commit

Permalink
forward using relative path. Should be safer
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jul 24, 2017
1 parent 8d8ba40 commit cba4d87
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ bool SendCaptivePortalHTML(HttpListenerRequest req, HttpListenerResponse res, st

string str = System.Text.Encoding.UTF8.GetString(content);
Dictionary<string, string> subs = new Dictionary<string, string>();
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);
Expand Down

0 comments on commit cba4d87

Please sign in to comment.