Skip to content

Commit

Permalink
URL Encode Username and Pwd
Browse files Browse the repository at this point in the history
  • Loading branch information
bhillkeyfactor committed Jul 19, 2024
1 parent a826398 commit bc29861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PaloAlto/Client/PaloAltoClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public class PaloAltoClient
public PaloAltoClient(string url, string userName, string password)
{
_logger = LogHandler.GetClassLogger<PaloAltoClient>();
ServerUserName = userName;
ServerPassword = password;
ServerUserName = Uri.EscapeDataString(userName);
ServerPassword = Uri.EscapeDataString(password);
var httpClientHandler = new HttpClientHandler
{
ServerCertificateCustomValidationCallback = (message, cert, chain, sslPolicyErrors) => true
Expand Down

0 comments on commit bc29861

Please sign in to comment.