Skip to content

Commit

Permalink
LPS-67271 SF rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Sierra committed Aug 16, 2018
1 parent cf3310e commit 174937d
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -52,7 +52,8 @@ public static String escapeCharacters(String attribute) {
attribute = StringEscapeUtils.escapeJava(attribute);
}

return StringUtil.replace(attribute, _CHARACTERS, _NEW_CHARACTERS);
return StringUtil.replace(
attribute, _INVALID_CHARS, _INVALID_CHARS_SUBS);
}

public static Object getAttributeObject(
Expand Down Expand Up @@ -231,12 +232,12 @@ else if (date.indexOf(CharPool.PERIOD) != -1) {
return dateFormat.parse(date);
}

private static final String[] _CHARACTERS = {
private static final String[] _INVALID_CHARS = {
StringPool.GREATER_THAN, StringPool.LESS_THAN, StringPool.PLUS,
StringPool.POUND, StringPool.QUOTE, StringPool.SEMICOLON
};

private static final String[] _NEW_CHARACTERS = {
private static final String[] _INVALID_CHARS_SUBS = {
StringPool.DOUBLE_BACK_SLASH.concat(StringPool.GREATER_THAN),
StringPool.DOUBLE_BACK_SLASH.concat(StringPool.LESS_THAN),
StringPool.DOUBLE_BACK_SLASH.concat(StringPool.PLUS),
Expand Down

0 comments on commit 174937d

Please sign in to comment.