Skip to content

Commit 14a5b84

Browse files
committed
Merge branch 'main' into dev
2 parents eb3f4c6 + e0301d4 commit 14a5b84

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

SECURITY.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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)**.

src/Blogifier.Admin/Pages/Account/Login.razor.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

src/Blogifier/Controllers/HomeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)