Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix NPE with null string
  • Loading branch information
wing328 committed Mar 31, 2019
commit 7f88227abc5c6015ee5b5ffc90b7b5fe8e2a832c
Original file line number Diff line number Diff line change
Expand Up @@ -1166,12 +1166,18 @@ public String toEnumValue(String value, String datatype) {

@Override
public String escapeQuotationMark(String input) {
if (input == null) {
return "";
}
// remove ', " to avoid code injection
return input.replace("\"", "").replace("'", "");
}

@Override
public String escapeUnsafeCharacters(String input) {
if (input == null) {
return "";
}
return input.replace("*/", "*_/").replace("/*", "/_*");
}

Expand Down