Skip to content

Commit 1ad193a

Browse files
committed
Fix special character check for connector parameter values
1 parent ef34fde commit 1ad193a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/customservice/synapse/mediatorService/MediatorHandler.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ private boolean hasSpecialXmlCharacter(Object o) {
254254
return false;
255255
}
256256
String value = (String) o;
257-
return value.contains("&") || value.contains("<") || value.contains(">") || value.contains("\"") ||
258-
value.contains("'");
257+
return value.contains("&") || value.contains("<") || value.contains(">");
259258
}
260259

261260
protected ConnectorAction getConnectorOperation(STNode node, String mediator) {

org.eclipse.lemminx/src/main/java/org/eclipse/lemminx/customservice/synapse/utils/Utils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ public static boolean isValidProject(String projectRoot) {
13961396
* Remove CDATA tags from the given xml string.
13971397
* <p>
13981398
* * Example:
1399-
* <![CDATA[<xml>]]> will be converted to <xml>
1399+
* {@code <![CDATA[<xml/>]]>} will be converted to {@code <xml/>}
14001400
* </p>
14011401
*
14021402
* @param value the xml string

0 commit comments

Comments
 (0)