Logo
Explore Help
Register Sign In
yv01p/Umbraco-CMS
1
0
Fork 0
You've already forked Umbraco-CMS
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
3612f18f3fce0cafd14c7e10152fc62fc79c79c8
Umbraco-CMS/src/Umbraco.Core/NameValueCollectionExtensions.cs

18 lines
392 B
C#
Raw Normal View History

Created new GlobalSettings unit tests to validate reserved paths as well as updated the umbraco module tests with an install path without 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.
2012-09-13 09:00:21 +07:00
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);
}
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 1014ms Template: 65ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API