mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merged changes from stable
This commit is contained in:
parent
f309632a05
commit
73f1e3b28b
@ -87,7 +87,12 @@ class auth_plugin_shibboleth extends auth_plugin_base {
|
||||
$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 @@ class auth_plugin_shibboleth extends auth_plugin_base {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user