mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19253: Fixing unallowed parameter value
Work Item: 19253 --HG-- branch : 1.x
This commit is contained in:
@@ -139,7 +139,7 @@ namespace Orchard.DisplayManagement.Descriptors.ShapePlacementStrategy {
|
||||
|
||||
if (normalizedPath.EndsWith("*")) {
|
||||
var prefix = normalizedPath.Substring(0, normalizedPath.Length - 1);
|
||||
return ctx => VirtualPathUtility.ToAppRelative(ctx.Path ?? "").StartsWith(prefix, StringComparison.OrdinalIgnoreCase) && predicate(ctx);
|
||||
return ctx => VirtualPathUtility.ToAppRelative(ctx.Path ?? "/").StartsWith(prefix, StringComparison.OrdinalIgnoreCase) && predicate(ctx);
|
||||
}
|
||||
|
||||
normalizedPath = VirtualPathUtility.AppendTrailingSlash(normalizedPath);
|
||||
|
Reference in New Issue
Block a user