summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/DotNetOpenAuth/UriUtil.cs2
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));