This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 0b5655b96c Review "Use UTF-8 for WebSocket client basic authentication 
credentials"
0b5655b96c is described below

commit 0b5655b96c20d9c00a81c0ed5f1d0c262a6dc267
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Nov 5 09:24:21 2026 +0000

    Review "Use UTF-8 for WebSocket client basic authentication credentials"
    
    Remove whitespace from around parsed attribute values
---
 java/org/apache/tomcat/websocket/Authenticator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/tomcat/websocket/Authenticator.java 
b/java/org/apache/tomcat/websocket/Authenticator.java
index cc0372886b..fd74b64b0b 100644
--- a/java/org/apache/tomcat/websocket/Authenticator.java
+++ b/java/org/apache/tomcat/websocket/Authenticator.java
@@ -147,7 +147,7 @@ public abstract class Authenticator {
             String qtedValue = m.group(3);
             String value = m.group(4);
 
-            parameterMap.put(key, qtedValue != null ? qtedValue : value);
+            parameterMap.put(key, qtedValue != null ? qtedValue : 
value.trim());
 
         }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to