Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merged changes from stable

  • Loading branch information...
commit 73f1e3b28bd5468d303d81a066b53cd76f1bc96a 1 parent f309632
exe-cutor authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 auth/shibboleth/auth.php
View
9 auth/shibboleth/auth.php
@@ -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) {
}
}
-?>
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.