From c6c7739d3a321e4bd5c9014dd315d8663b1b5628 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Tue, 17 Nov 2015 13:05:00 +0000 Subject: [PATCH] SSDM-2805: bug fixed: escaping '[' for regex SVN: 35076 --- .../WhiteListCodebaseAwareObjectInputStream.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/source/java/ch/systemsx/cisd/common/spring/WhiteListCodebaseAwareObjectInputStream.java b/common/source/java/ch/systemsx/cisd/common/spring/WhiteListCodebaseAwareObjectInputStream.java index 8b746e1c680..361cbb16608 100644 --- a/common/source/java/ch/systemsx/cisd/common/spring/WhiteListCodebaseAwareObjectInputStream.java +++ b/common/source/java/ch/systemsx/cisd/common/spring/WhiteListCodebaseAwareObjectInputStream.java @@ -41,21 +41,21 @@ public class WhiteListCodebaseAwareObjectInputStream extends CodebaseAwareObject static { addToWhiteListPatterns("char"); - addToWhiteListPatterns("[C"); + addToWhiteListPatterns("\\[C"); addToWhiteListPatterns("byte"); - addToWhiteListPatterns("[B"); + addToWhiteListPatterns("\\[B"); addToWhiteListPatterns("short"); - addToWhiteListPatterns("[S"); + addToWhiteListPatterns("\\[S"); addToWhiteListPatterns("int"); - addToWhiteListPatterns("[I"); + addToWhiteListPatterns("\\[I"); addToWhiteListPatterns("long"); - addToWhiteListPatterns("[J"); + addToWhiteListPatterns("\\[J"); addToWhiteListPatterns("float"); - addToWhiteListPatterns("[F"); + addToWhiteListPatterns("\\[F"); addToWhiteListPatterns("double"); - addToWhiteListPatterns("[D"); + addToWhiteListPatterns("\\[D"); addToWhiteListPatterns("boolean"); - addToWhiteListPatterns("[Z"); + addToWhiteListPatterns("\\[Z"); addToWhiteListPatterns("org\\.springframework\\.remoting\\.support\\.RemoteInvocation"); addToWhiteListPatterns("com\\.marathon\\.util\\.spring\\.StreamSupportingRemoteInvocation"); addToWhiteListPatterns("com\\.marathon\\.util\\.spring\\.RemoteInvocationDecorator"); -- GitLab