Util.java
public static String escapeCsvInjection(String value) {
if (value == null) {
return null;
}
return value.replaceFirst("^(\\+|-|@|=).*", "'" + value);
}
Go to list of users who liked
More than 3 years have passed since last update.
public static String escapeCsvInjection(String value) {
if (value == null) {
return null;
}
return value.replaceFirst("^(\\+|-|@|=).*", "'" + value);
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked