mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing a bug with "~/something/*" url's in the UrlRuleProvider
--HG-- branch : dev
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Orchard.Widgets.RuleEngine {
|
||||
if (url != "/" && !url.Contains("?") && url.EndsWith("/"))
|
||||
url = url.TrimEnd('/');
|
||||
ruleContext.Result = url.EndsWith("*")
|
||||
? context.Request.Path.ToUpperInvariant().StartsWith(url.ToUpperInvariant())
|
||||
? context.Request.Path.ToUpperInvariant().StartsWith(url.TrimEnd('*').ToUpperInvariant())
|
||||
: context.Request.Path.ToUpperInvariant() == url.ToUpperInvariant();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user