From bc29861089caa6bbb942dc053a14e6a269662d3c Mon Sep 17 00:00:00 2001 From: Brian Hill Date: Fri, 19 Jul 2024 13:57:17 -0400 Subject: [PATCH] URL Encode Username and Pwd --- PaloAlto/Client/PaloAltoClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PaloAlto/Client/PaloAltoClient.cs b/PaloAlto/Client/PaloAltoClient.cs index a9f7569..a509980 100644 --- a/PaloAlto/Client/PaloAltoClient.cs +++ b/PaloAlto/Client/PaloAltoClient.cs @@ -34,8 +34,8 @@ public class PaloAltoClient public PaloAltoClient(string url, string userName, string password) { _logger = LogHandler.GetClassLogger(); - ServerUserName = userName; - ServerPassword = password; + ServerUserName = Uri.EscapeDataString(userName); + ServerPassword = Uri.EscapeDataString(password); var httpClientHandler = new HttpClientHandler { ServerCertificateCustomValidationCallback = (message, cert, chain, sslPolicyErrors) => true