the suffixed '/'. Fixed a bug with the reserved paths which was caused by code written in 4.9 to the new code written in 4.10 and the combined effort was not working. Added more logic to cleanup the URL before comparing too. Cleaned up GlobalSettings to not have any reliance whatsoever on httpcontext (which of course it shouldn't and not sure why it even did before). Obsoleted a few methods on the legacy GlobalSettings that aren't used anywhere and should be removed in the future. Cleaned up a bit of the UmbracoModule with the URLs used.
18 lines
392 B
C#
18 lines
392 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Specialized;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Umbraco.Core
|
|
{
|
|
internal static class NameValueCollectionExtensions
|
|
{
|
|
|
|
public static bool ContainsKey(this NameValueCollection collection, string key)
|
|
{
|
|
return collection.Keys.Cast<object>().Any(k => (string) k == key);
|
|
}
|
|
}
|
|
}
|