This commit is contained in:
@@ -450,12 +450,17 @@ namespace AyaNova
|
||||
}
|
||||
else if (context.Request.Headers["Referer"].Count > 0)
|
||||
{//Maybe it's in the referer
|
||||
var q = Microsoft.AspNetCore.WebUtilities.QueryHelpers.ParseQuery(context.Request.Headers["Referer"]);
|
||||
//try to split it on the ?
|
||||
string[] stuff = context.Request.Headers["Referer"].ToString().Split('?');
|
||||
if (stuff.Count() > 1)
|
||||
{
|
||||
var q = Microsoft.AspNetCore.WebUtilities.QueryHelpers.ParseQuery(stuff[1]);
|
||||
if (q.ContainsKey("t"))
|
||||
{
|
||||
token = q["t"].ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(token))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user