#6046: FileRepository.GetFile: compare both filenames in the same cast.

This commit is contained in:
Kuyck, Pieter
2026-02-17 15:59:20 +01:00
parent 1ddf6fe74e
commit 6f6870b16d
2 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
{
"profiles": {
"Oqtane.Application.Client": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:62381;http://localhost:62382"
}
}
}

View File

@@ -121,7 +121,7 @@ namespace Oqtane.Repository
var file = db.File.AsNoTracking() var file = db.File.AsNoTracking()
.Include(item => item.Folder) .Include(item => item.Folder)
.FirstOrDefault(item => item.FolderId == folderId && .FirstOrDefault(item => item.FolderId == folderId &&
item.Name.ToLower() == fileName); item.Name.ToLower() == fileName.ToLower());
if (file != null) if (file != null)
{ {