Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6070 Update Apache Commons Lang3 #7801

Merged
merged 10 commits into from
May 21, 2021
Prev Previous commit
Next Next commit
fix(deps): migrating a leftover string escape from commons.lang v2. #…
  • Loading branch information
poikilotherm committed May 17, 2021
commit f41342e07a067a78e4ab62693ea1553d52fbd99f
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public static String getMetadataFromDvObject(String identifier, Map<String, Stri
metadataTemplate.setAuthors(dataset.getLatestVersion().getDatasetAuthors());
if (dvObject.isInstanceofDataset()) {
//While getDescriptionPlainText strips < and > from HTML, it leaves '&' (at least so we need to xml escape as well
String description = StringEscapeUtils.escapeXml(dataset.getLatestVersion().getDescriptionPlainText());
String description = StringEscapeUtils.escapeXml10(dataset.getLatestVersion().getDescriptionPlainText());
if (description.isEmpty() || description.equals(DatasetField.NA_VALUE)) {
description = AbstractGlobalIdServiceBean.UNAVAILABLE;
}
Expand Down