mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03: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",
|
"reconvert.attributes",
|
||||||
false);
|
false);
|
||||||
|
|
||||||
if (reconvertAttributes)
|
if (!StringUtils.isEmpty(value) && reconvertAttributes)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
value = new String(value.getBytes("ISO-8859-1"), "UTF-8");
|
value = new String(value.getBytes("ISO-8859-1"), "UTF-8");
|
||||||
|
Reference in New Issue
Block a user