From d40c1d9b317c5a17658859b1f2fd7e370069ce30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Vesely=CC=81?= Date: Tue, 6 Sep 2022 09:07:43 +0200 Subject: [PATCH] Backslash fix. --- Oqtane.Server/Controllers/FileController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Oqtane.Server/Controllers/FileController.cs b/Oqtane.Server/Controllers/FileController.cs index 323fc195..9f95cd70 100644 --- a/Oqtane.Server/Controllers/FileController.cs +++ b/Oqtane.Server/Controllers/FileController.cs @@ -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; }