mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#18101: Suspended tenant could be served
Work Item: 18101 --HG-- branch : 1.x
This commit is contained in:
@@ -89,7 +89,7 @@ namespace Orchard.Environment {
|
||||
.Where(group => host.EndsWith(group.Key, StringComparison.OrdinalIgnoreCase))
|
||||
.SelectMany(group => group
|
||||
.OrderByDescending(settings => (settings.RequestUrlPrefix ?? "").Length))
|
||||
.Where(settings => appRelativePath.StartsWith(settings.RequestUrlPrefix ?? "", StringComparison.OrdinalIgnoreCase))
|
||||
.Where(settings => settings.State.CurrentState == TenantState.State.Running && appRelativePath.StartsWith(settings.RequestUrlPrefix ?? "", StringComparison.OrdinalIgnoreCase))
|
||||
.FirstOrDefault();
|
||||
|
||||
return mostQualifiedMatch ?? _fallback;
|
||||
|
Reference in New Issue
Block a user