From 650864218a2f3b5bf77f9d594e4669d466309b32 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Sat, 6 Jul 2013 11:08:07 -0700 Subject: [PATCH] #19253: Fixing unallowed parameter value Work Item: 19253 --HG-- branch : 1.x --- .../ShapePlacementStrategy/ShapePlacementParsingStrategy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard/DisplayManagement/Descriptors/ShapePlacementStrategy/ShapePlacementParsingStrategy.cs b/src/Orchard/DisplayManagement/Descriptors/ShapePlacementStrategy/ShapePlacementParsingStrategy.cs index 9397cf932..73f0d3981 100644 --- a/src/Orchard/DisplayManagement/Descriptors/ShapePlacementStrategy/ShapePlacementParsingStrategy.cs +++ b/src/Orchard/DisplayManagement/Descriptors/ShapePlacementStrategy/ShapePlacementParsingStrategy.cs @@ -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);