diff --git a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php index fb67fc6ec40b4f9b44556bd6b21dabc9e0d32c2d..6b3a73cd21a45e63926dc61ac5975731b44a60bc 100644 --- a/lib/SimpleSAML/XML/SAML20/AuthnResponse.php +++ b/lib/SimpleSAML/XML/SAML20/AuthnResponse.php @@ -416,18 +416,11 @@ class SimpleSAML_XML_SAML20_AuthnResponse extends SimpleSAML_XML_AuthnResponse { } if ($base64) { - - if ($name != 'jpegPhoto') { - foreach(explode('_', $value) AS $v) { - - $this->attributes[$name][] = base64_decode($v); - } - } else { - $this->attributes[$name][] = $value; - file_put_contents('/tmp/image2.jpg', $value); + foreach(explode('_', $value) AS $v) { + $this->attributes[$name][] = base64_decode($v); } - + } else { $this->attributes[$name][] = $value; }