Skip to content

Commit f9c1623

Browse files
committed
up
1 parent abaea91 commit f9c1623

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

ColoryrServer/ASP/ASPHttpUtils.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ public class ASPHttpUtils
44
{
55
public static string HaveCookie(string hashtable)
66
{
7+
if (hashtable == null)
8+
return null;
79
string[] Cookies = hashtable.Split(';');
810
foreach (var Item in Cookies)
911
{

ColoryrServer/ASP/Program.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state,
3838
if (eventId.Id == 100 || eventId.Id == 101)
3939
return;
4040
if (logLevel is LogLevel.Warning or LogLevel.Error)
41-
ServerMain.LogError($"{logLevel}-{eventId.Id} {formatter(state, exception)}");
41+
ServerMain.LogError($"{logLevel}-{eventId.Id} {state} {exception} {exception.StackTrace}");
4242
else
43-
ServerMain.LogOut($"{logLevel}-{eventId.Id} {formatter(state, exception)}");
43+
ServerMain.LogOut($"{logLevel}-{eventId.Id} {state} {exception}");
4444
}
4545
}
4646

@@ -283,7 +283,8 @@ private static async Task GetBack(HttpContext context)
283283
var Temp = new Dictionary<string, dynamic>();
284284
if (Request.QueryString.HasValue)
285285
{
286-
foreach (string a in Request.QueryString.Value.Split('&'))
286+
var b = Request.QueryString.Value[1..];
287+
foreach (string a in b.Split('&'))
287288
{
288289
var item = a.Split("=");
289290
Temp.Add(item[0], item[1]);

0 commit comments

Comments
 (0)