From 8b4373b6241bb2630ff093ce55cd244086c4b8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no> Date: Wed, 12 Mar 2008 13:10:14 +0000 Subject: [PATCH] Fixing user ID to be single valued when hashing in consent module git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@404 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Consent/Consent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Consent/Consent.php b/lib/SimpleSAML/Consent/Consent.php index dbc8a23c7..d1d1629d5 100644 --- a/lib/SimpleSAML/Consent/Consent.php +++ b/lib/SimpleSAML/Consent/Consent.php @@ -80,7 +80,7 @@ class SimpleSAML_Consent_Consent { $userid_attributename . '] was not available.'); } - $userid = $this->attributes[$userid_attributename]; + $userid = $this->attributes[$userid_attributename][0]; return hash('sha1', $userid . $this->salt . $this->getIdPID() ); } -- GitLab