This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 84e497d  [OPENMEETINGS-1906] mysql property patcher is fixed
84e497d is described below

commit 84e497d45d63f630dd48a72c259c6ce6ac1648ed
Author: Maxim Solodovnik <[email protected]>
AuthorDate: Wed Jul 18 00:10:42 2018 +0700

    [OPENMEETINGS-1906] mysql property patcher is fixed
---
 .../org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java     | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/openmeetings-install/src/main/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
 
b/openmeetings-install/src/main/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
index 441b2b1..6fc273d 100644
--- 
a/openmeetings-install/src/main/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
+++ 
b/openmeetings-install/src/main/java/org/apache/openmeetings/cli/ConnectionPropertiesPatcher.java
@@ -18,8 +18,6 @@
  */
 package org.apache.openmeetings.cli;
 
-import static org.apache.commons.text.StringEscapeUtils.escapeXml10;
-
 import java.io.File;
 
 import javax.xml.parsers.DocumentBuilder;
@@ -140,8 +138,7 @@ public abstract class ConnectionPropertiesPatcher {
        protected static void patchProp(String[] tokens, int idx, String name, 
String value) {
                String prop = tokens[idx].trim();
                if (prop.startsWith(name)) {
-                       prop = name + "=" + escapeXml10(value);
-                       tokens[idx] = prop;
+                       tokens[idx] = String.format("%s=%s", name, value);
                }
        }
 

Reply via email to