Skip to content

Commit

Permalink
Reconvert shibboleth attribute only if it is neither null nor empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbecker authored and Hardy Pottinger committed Jul 3, 2014
1 parent ab45683 commit bd11bd6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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");
Expand Down

0 comments on commit bd11bd6

Please sign in to comment.