You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2018/07/17 17:10:53 UTC

[openmeetings] branch 4.0.x updated: [OPENMEETINGS-1906] mysql property patcher is fixed

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

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


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

commit fba9db8094b4dc63ee9f1a135b8deeff94668e9b
Author: Maxim Solodovnik <so...@gmail.com>
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);
 		}
 	}