From a51ea1af608572681dfddf09c56ccb96766f5ff1 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sun, 6 Jan 2019 08:41:19 +0000 Subject: [PATCH] "Applied fix from trunk for revision: 1850530" ------------------------------------------------------------------------ r1850530 | jleroux | 2019-01-06 09:40:38 +0100 (dim. 06 janv. 2019) | 8 lignes Fixed: Impossible secure and autologin cookie names when mountpoint contains a slash inside its name (OFBIZ-10766) When you set a mountpoint which contains a slash inside its name (ie not only a slash as a trailer, which is possible), as it's needed with OFBIZ-10765, OFBiz tries to create a cookie with a slash in its name and that's impossible ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/branches/release18.12@1850531 13f79535-47bb-0310-9956-ffa450edef68 --- .../base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java index 88fce61f00..670b99ce27 100644 --- a/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java +++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilHttp.java @@ -668,7 +668,7 @@ public final class UtilHttp { if (request.getContextPath().length() > 1) { appName = request.getContextPath().substring(1); } - return appName; + return appName.replaceAll("/","_"); } public static void setInitialRequestInfo(HttpServletRequest request) {