Skip to content

Commit

Permalink
NETC-60 URL encode ticket parameter value.
Browse files Browse the repository at this point in the history
  • Loading branch information
serac committed Jun 16, 2014
1 parent 0de35bc commit f0e0300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DotNetCasClient/Utils/UrlUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit f0e0300

Please sign in to comment.