From f0e030014fb7a39e5f38469f43199dc590fd0e8d Mon Sep 17 00:00:00 2001 From: "Marvin S. Addison" Date: Mon, 16 Jun 2014 14:45:30 -0400 Subject: [PATCH] NETC-60 URL encode ticket parameter value. --- DotNetCasClient/Utils/UrlUtil.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DotNetCasClient/Utils/UrlUtil.cs b/DotNetCasClient/Utils/UrlUtil.cs index 6f95c6b..bc3c470 100644 --- a/DotNetCasClient/Utils/UrlUtil.cs +++ b/DotNetCasClient/Utils/UrlUtil.cs @@ -139,7 +139,7 @@ public static string ConstructValidateUrl(string serviceTicket, bool gateway, bo EnhancedUriBuilder ub = new EnhancedUriBuilder(EnhancedUriBuilder.Combine(CasAuthentication.CasServerUrlPrefix, CasAuthentication.TicketValidator.UrlSuffix)); ub.QueryItems.Add(CasAuthentication.TicketValidator.ServiceParameterName, HttpUtility.UrlEncode(ConstructServiceUrl(gateway))); - ub.QueryItems.Add(CasAuthentication.TicketValidator.ArtifactParameterName, serviceTicket); + ub.QueryItems.Add(CasAuthentication.TicketValidator.ArtifactParameterName, HttpUtility.UrlEncode(serviceTicket)); if (renew) {