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

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


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

commit 3edc3186aa52ea6e3e681a8abbd5a1ee1715dd25
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 52151ab3e5..c85174083e 100644
--- a/java/org/apache/tomcat/websocket/Authenticator.java
+++ b/java/org/apache/tomcat/websocket/Authenticator.java
@@ -109,7 +109,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