Skip to content
Browse files

Reconvert shibboleth attribute only if it is neither null nor empty.

  • Loading branch information...
1 parent ab45683 commit bd11bd6aa71380a0f2e7344367b0cf54a8faede0 @pnbecker pnbecker committed with Hardy Pottinger
Showing with 1 addition and 1 deletion.
  1. +1 −1 dspace-api/src/main/java/org/dspace/authenticate/ShibAuthentication.java
View
2 dspace-api/src/main/java/org/dspace/authenticate/ShibAuthentication.java
@@ -1102,7 +1102,7 @@ private String findAttribute(HttpServletRequest request, String name) {
"reconvert.attributes",
false);
- if (reconvertAttributes)
+ if (!StringUtils.isEmpty(value) && reconvertAttributes)
{
try {
value = new String(value.getBytes("ISO-8859-1"), "UTF-8");

0 comments on commit bd11bd6

Please sign in to comment.
Something went wrong with that request. Please try again.