Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Dec 5, 2023
1 parent dcfa843 commit 229acd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private static boolean isISOType(String value) {
String decodedString = new String(iso8859Bytes, StandardCharsets.ISO_8859_1);

// Compare the original string with the decoded string
return value.equals(decodedString);
return StringUtils.equals(value, decodedString);
} catch (Exception e) {
// An exception occurred, so the input is not ISO-8859-1
return false;
Expand Down
2 changes: 1 addition & 1 deletion dspace/config/clarin-dspace.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ authority.controlled.dc.relation = true

#nameConversion
shibboleth.name.conversion.inputEncoding = ISO-8859-1
shibboleth.name.conversion.outputEncoding = UTF-8
shibboleth.name.conversion.outputEncoding = UTF-8

0 comments on commit 229acd0

Please sign in to comment.