Merge pull request #2401 from chlupac/BackslashFix

Backslash fix.
This commit is contained in:
Shaun Walker 2022-09-06 10:53:48 -04:00 committed by GitHub
commit 62eca2aedc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -503,7 +503,7 @@ namespace Oqtane.Controllers
HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden;
}
string errorPath = Path.Combine(GetFolderPath("wwwroot\\images"), "error.png");
string errorPath = Path.Combine(GetFolderPath("wwwroot/images"), "error.png");
return System.IO.File.Exists(errorPath) ? PhysicalFile(errorPath, MimeUtilities.GetMimeType(errorPath)) : null;
}
@ -568,7 +568,7 @@ namespace Oqtane.Controllers
HttpContext.Response.StatusCode = (int)HttpStatusCode.Forbidden;
}
string errorPath = Path.Combine(GetFolderPath("wwwroot\\images"), "error.png");
string errorPath = Path.Combine(GetFolderPath("wwwroot/images"), "error.png");
return System.IO.File.Exists(errorPath) ? PhysicalFile(errorPath, MimeUtilities.GetMimeType(errorPath)) : null;
}