Skip to content
Snippets Groups Projects
Commit baba857a authored by Jaime Pérez's avatar Jaime Pérez
Browse files

bugfix: Make sure empty strings are not acceptable as a UserID.

parent 8cd71966
No related branches found
No related tags found
No related merge requests found
...@@ -347,7 +347,13 @@ class SimpleSAML_Auth_ProcessingChain { ...@@ -347,7 +347,13 @@ class SimpleSAML_Auth_ProcessingChain {
return; return;
} }
// TODO: the attribute value should be trimmed
$uid = $uid[0]; $uid = $uid[0];
if (empty($uid)) {
SimpleSAML\Logger::warning('Empty value in attribute '.$attributeName.". on user. Cannot set UserID.");
return;
}
$state['UserID'] = $uid; $state['UserID'] = $uid;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment