Hi
My logs are filed with this annoying message:
PHP Notice: Undefined index: Attributes in
/usr/local/simplesamlphp-1.14.14/lib/SimpleSAML/Session.php on line 600
PHP Warning: Invalid argument supplied for foreach() in
/usr/local/simplesamlphp-1.14.14/lib/SimpleSAML/Session.php on line 600
I suggest this fix:
--- /usr/local/simplesamlphp-1.14.14/lib/SimpleSAML/Session.php.orig
+++ /usr/local/simplesamlphp-1.14.14/lib/SimpleSAML/Session.php
@@ -595,8 +595,12 @@
// unset, or beyond our session lifetime. Clamp it to our
maximum session lifetime
$data['Expire'] = $maxSessionExpire;
}
+ if ($data['Attributes'] === null) {
+ $data['Attributes'] = array();
+ }
+
// check if we have non-serializable attribute values
foreach ($data['Attributes'] as $attribute => $values) {
foreach ($values as $idx => $value) {
if (is_string($value) || is_int($value)) {
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
ma...@netbsd.org