mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 02:24:18 +00:00
Reconvert shibboleth attribute only if it is neither null nor empty.
This commit is contained in:
@@ -1102,7 +1102,7 @@ public class ShibAuthentication implements AuthenticationMethod
|
||||
"reconvert.attributes",
|
||||
false);
|
||||
|
||||
if (reconvertAttributes)
|
||||
if (!StringUtils.isEmpty(value) && reconvertAttributes)
|
||||
{
|
||||
try {
|
||||
value = new String(value.getBytes("ISO-8859-1"), "UTF-8");
|
||||
|
Reference in New Issue
Block a user