BlogEngine.Core.Avatar.ValidRemoteSite C# (CSharp) Method

ValidRemoteSite() static private method

static private ValidRemoteSite ( Uri website ) : bool
website System.Uri
return bool
        static bool ValidRemoteSite(Uri website)
        {
            if (website != null && website.ToString().Length > 0 &&
                (website.ToString().StartsWith("http://") || website.ToString().StartsWith("https://")))
            {
                return true;
            }
            return false;
        }