This is an automated email from the ASF dual-hosted git repository.
remm 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 7022729747 Fix string
7022729747 is described below
commit 7022729747702abb510eb386f755b0900d543ca8
Author: remm <[email protected]>
AuthorDate: Thu Feb 8 10:59:03 2024 +0100
Fix string
---
java/org/apache/tomcat/websocket/LocalStrings.properties | 1 +
java/org/apache/tomcat/websocket/Util.java | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/tomcat/websocket/LocalStrings.properties
b/java/org/apache/tomcat/websocket/LocalStrings.properties
index 32dd285bf7..a24e32610d 100644
--- a/java/org/apache/tomcat/websocket/LocalStrings.properties
+++ b/java/org/apache/tomcat/websocket/LocalStrings.properties
@@ -53,6 +53,7 @@ perMessageDeflate.unknownParameter=An unknown extension
parameter [{0}] was defi
util.invalidMessageHandler=The message handler provided does not have an
onMessage(Object) method
util.invalidType=Unable to coerce value [{0}] to type [{1}]. That type is not
supported.
+util.invalidValue=Value [{0}] contains delimiters
util.notToken=An illegal extension parameter was specified with name [{0}] and
value [{1}]
util.unknownDecoderType=The Decoder type [{0}] is not recognized
diff --git a/java/org/apache/tomcat/websocket/Util.java
b/java/org/apache/tomcat/websocket/Util.java
index 4aa51e305c..00e47b4698 100644
--- a/java/org/apache/tomcat/websocket/Util.java
+++ b/java/org/apache/tomcat/websocket/Util.java
@@ -506,7 +506,7 @@ public class Util {
}
if (value != null && (value.indexOf(',') > -1 ||
value.indexOf(';') > -1 || value.indexOf('\"') > -1 ||
value.indexOf('=') > -1)) {
- throw new IllegalArgumentException(sm.getString("",
value));
+ throw new
IllegalArgumentException(sm.getString("util.invalidValue", value));
}
extension.addParameter(new WsExtensionParameter(name, value));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]