Facebook.CanvasAuthContext.StripAwayProhibitedKeys C# (CSharp) Method

StripAwayProhibitedKeys() static private method

static private StripAwayProhibitedKeys ( Uri currentUrl ) : string
currentUrl System.Uri
return string
        internal static string StripAwayProhibitedKeys(Uri currentUrl)
        {
            NameValueCollection nvp = HttpUtility.ParseQueryString(currentUrl.GetComponents(UriComponents.Query, UriFormat.Unescaped));
            var @params = new Dictionary<string, string>(nvp.Count);

            foreach (string name in nvp)
            {
                if (name != null && !s_prohibitedKeys.Contains(name))
                    @params[name] = nvp[name];
            }

            return currentUrl.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped) + "?" + FacebookApi.EncodeDictionary(@params);
        }