Skip to content
Snippets Groups Projects
Commit e3c27d5d authored by Olav Morken's avatar Olav Morken
Browse files

aselect: Fix parsing of multivalued attributes.

Patch by Patrick Honing from issue 322.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2413 44740490-163a-0410-bde0-09ae8108e29a
parent d92a2b8a
No related branches found
No related tags found
No related merge requests found
...@@ -158,6 +158,9 @@ class sspmod_aselect_Auth_Source_aselect extends SimpleSAML_Auth_Source { ...@@ -158,6 +158,9 @@ class sspmod_aselect_Auth_Source_aselect extends SimpleSAML_Auth_Source {
foreach (explode('&', $decoded) as $parm) { foreach (explode('&', $decoded) as $parm) {
$tuple = explode('=', $parm); $tuple = explode('=', $parm);
$name = urldecode($tuple[0]); $name = urldecode($tuple[0]);
if (preg_match('/\[\]$/',$name)) {
$name = substr($name, 0 ,-2);
}
if (!array_key_exists($name, $attributes)) { if (!array_key_exists($name, $attributes)) {
$attributes[$name] = array(); $attributes[$name] = array();
} }
......
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