Permalink
Browse files

Merged changes from stable

  • Loading branch information...
1 parent f309632 commit 73f1e3b28bd5468d303d81a066b53cd76f1bc96a exe-cutor committed Jul 11, 2007
Showing with 7 additions and 2 deletions.
  1. +7 −2 auth/shibboleth/auth.php
View
@@ -87,7 +87,12 @@ function get_userinfo($username) {
$search_attribs = array();
foreach ($attrmap as $key=>$value) {
-
+ // Check if attribute is present
+ if (!isset($_SERVER[$value])){
+ $result[$key] = '';
+ continue;
+ }
+
// Make usename lowercase
if ($key == 'username'){
$result[$key] = strtolower($this->get_first_string($_SERVER[$value]));
@@ -224,4 +229,4 @@ function get_first_string($string) {
}
}
-?>
+?>

0 comments on commit 73f1e3b

Please sign in to comment.