Improvement to the security to clear any content from the rendering pipeline before redirect
This commit is contained in:
parent
06ac2e98e1
commit
3a250132b3
|
@ -1,4 +1,5 @@
|
||||||
using System;
|
using System.Net;
|
||||||
|
using System;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Core.Main;
|
using Core.Main;
|
||||||
using Core.Helper;
|
using Core.Helper;
|
||||||
|
@ -27,7 +28,8 @@ namespace Monitor._Internal
|
||||||
// Security check
|
// Security check
|
||||||
if (!IsLoggedIn(this.HttpContext))
|
if (!IsLoggedIn(this.HttpContext))
|
||||||
{
|
{
|
||||||
HttpContext.Response.Redirect(PTMagicConfiguration.GeneralSettings.Monitor.RootUrl + _redirectUrl);
|
this.HttpContext.Response.Clear();
|
||||||
|
this.HttpContext.Response.Redirect(PTMagicConfiguration.GeneralSettings.Monitor.RootUrl + _redirectUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue