- Timestamp:
- Aug 11, 2021, 6:22:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/Handlers/SessionHandler.cs
r351 r367 7 7 private readonly string footer = ""; 8 8 private readonly string header = ""; 9 private readonly Web parent;10 private readonly string staticPart;11 9 12 public SessionHandler (string _staticPart, string _dataFolder, Web _parent, string _moduleName = null) : 13 base (_moduleName) { 14 staticPart = _staticPart; 15 parent = _parent; 16 10 public SessionHandler (string _dataFolder, string _moduleName = null) : base (_moduleName) { 17 11 if (File.Exists (_dataFolder + "/sessionheader.tmpl")) { 18 12 header = File.ReadAllText (_dataFolder + "/sessionheader.tmpl"); … … 26 20 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user, 27 21 int _permissionLevel) { 28 string subpath = _req.Url.AbsolutePath.Remove (0, staticPart.Length);22 string subpath = _req.Url.AbsolutePath.Remove (0, urlBasePath.Length); 29 23 30 24 StringBuilder result = new StringBuilder (); … … 52 46 "<h1>Not logged in, <a href=\"/static/index.html\">click to return to main page</a>.</h1>"); 53 47 } else if (subpath.StartsWith ("login")) { 54 string host = (Web. isSslRedirected (_req) ? "https://" : "http://") + _req.UserHostName;48 string host = (Web.IsSslRedirected (_req) ? "https://" : "http://") + _req.UserHostName; 55 49 string url = OpenID.GetOpenIdLoginUrl (host, host + "/session/verify"); 56 50 _resp.Redirect (url);
Note:
See TracChangeset
for help on using the changeset viewer.