This is an automated email from the ASF dual-hosted git repository.
remm 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 9696112d25 Fix string
9696112d25 is described below
commit 9696112d25b8a1fa78022931cf915910dbe7c3ca
Author: remm
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 47af443304..6113667aae 100644
--- a/java/org/apache/tomcat/websocket/LocalStrings.properties
+++ b/java/org/apache/tomcat/websocket/LocalStrings.properties
@@ -55,6 +55,7 @@ transformerFactory.unsupportedExtension=The extension [{0}]
is not supported
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 34d3ea815e..be26a1dc4a 100644
--- a/java/org/apache/tomcat/websocket/Util.java
+++ b/java/org/apache/tomcat/websocket/Util.java
@@ -523,7 +523,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: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org