File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
Blogifier.Admin/Pages/Account Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1+ # Security Policy
2+
3+ ## Supported Versions
4+
5+ Security patches will be applied to the most recent version.
6+
7+ | Version | Supported |
8+ | ------- | ------------------ |
9+ | 2.9.x.x | Most Current Version|
10+
11+ ## Reporting a Vulnerability
12+
13+ Please report (suspected) security vulnerabilities to
14+ ** [ blogifierdotnet@gmail.com ] ( mailto:blogifierdotnet@gmail.com ) ** .
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ public async Task LoginUser()
1919 if ( QueryHelpers . ParseQuery ( uri . Query ) . TryGetValue ( "returnUrl" , out var param ) )
2020 returnUrl = param . First ( ) ;
2121
22+ if ( returnUrl . StartsWith ( "http" ) )
23+ returnUrl = "admin/" ;
24+
2225 var result = await Http . PostAsJsonAsync < LoginModel > ( "api/author/login" , model ) ;
2326
2427 if ( result . IsSuccessStatusCode )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public async Task<IActionResult> Index(string slug)
6363 [ HttpGet ( "/admin" ) ]
6464 public async Task < IActionResult > Admin ( )
6565 {
66- return File ( "~/index.html" , "text/html" ) ;
66+ return await Task . FromResult ( File ( "~/index.html" , "text/html" ) ) ;
6767 }
6868
6969 [ HttpPost ]
You can’t perform that action at this time.
0 commit comments