This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new c9f0122f8e Review "Use UTF-8 for WebSocket client basic authentication
credentials"
c9f0122f8e is described below
commit c9f0122f8ed58e57e9ac082ade55b01d48c54290
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]