diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-02-08 19:17:18 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-02-08 19:27:09 -0800 |
commit | 26b2ba62a11e28652f999d4b6f3d00e986c4ba6d (patch) | |
tree | 7720da68a67532b2b972ca1f9b863a3f7e05c1dc /src | |
parent | f1e691570b3511e3eca26a47b72b2d4d6f31bacb (diff) | |
download | DotNetOpenAuth-26b2ba62a11e28652f999d4b6f3d00e986c4ba6d.zip DotNetOpenAuth-26b2ba62a11e28652f999d4b6f3d00e986c4ba6d.tar.gz DotNetOpenAuth-26b2ba62a11e28652f999d4b6f3d00e986c4ba6d.tar.bz2 |
Moved error checking in UriUtil method.
Diffstat (limited to 'src')
-rw-r--r-- | src/DotNetOpenAuth/UriUtil.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/UriUtil.cs b/src/DotNetOpenAuth/UriUtil.cs index 6960adf..97b9d10 100644 --- a/src/DotNetOpenAuth/UriUtil.cs +++ b/src/DotNetOpenAuth/UriUtil.cs @@ -27,10 +27,10 @@ namespace DotNetOpenAuth { /// True if the URI contains an OAuth message. /// </returns> internal static bool QueryStringContainPrefixedParameters(this Uri uri, string prefix) { + ErrorUtilities.VerifyNonZeroLength(prefix, "prefix"); if (uri == null) { return false; } - ErrorUtilities.VerifyNonZeroLength(prefix, "prefix"); NameValueCollection nvc = HttpUtility.ParseQueryString(uri.Query); return nvc.Keys.OfType<string>().Any(key => key.StartsWith(prefix, StringComparison.Ordinal)); |