From c70f148ff0e8e402bca41b5c3c3075b403e6c3fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Thu, 8 Jan 2009 16:29:46 +0000
Subject: [PATCH] Do not filter attributes if no attributs variable is provided

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1103 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/core/lib/Auth/Process/AttributeLimit.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/core/lib/Auth/Process/AttributeLimit.php b/modules/core/lib/Auth/Process/AttributeLimit.php
index c7b805b34..0cf1a3f9b 100644
--- a/modules/core/lib/Auth/Process/AttributeLimit.php
+++ b/modules/core/lib/Auth/Process/AttributeLimit.php
@@ -63,8 +63,10 @@ class sspmod_core_Auth_Process_AttributeLimit extends SimpleSAML_Auth_Processing
 				} else {
 					$this->allowedAttributes = $request['Source']['attributes'];
 				}
-			} else {
+			} elseif (array_key_exists('attributes', $request['Destination'])) {
 				$this->allowedAttributes = $request['Destination']['attributes'];
+			} else {
+				return;
 			}
 		}
 		
-- 
GitLab