Skip to content

Commit 63f8709

Browse files
stevelBalazs Dianiska
authored andcommitted
Issue #2134581 by Stevel: Allow role sync rules with commas in values
1 parent c934c90 commit 63f8709

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

simplesamlphp_auth.info

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ name = SimpleSAMLphp authentication
22
description = Allows users to authenticate to a remote SAML identity provider (IdP) via a locally configured SimpleSAMLphp service point (SP).
33
core = 7.x
44
configure = admin/config/people/simplesamlphp_auth
5+
php = 5.3

simplesamlphp_auth.module

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ function _simplesamlphp_auth_rolepopulation($rolemap) {
592592

593593
watchdog('simplesamlphp_auth', 'Evaluate role evaulation: %roleruleeval', array('%roleruleeval' => $roleruleevaluation), WATCHDOG_DEBUG);
594594

595-
$roleruleevaluationdc = explode(',', $roleruleevaluation);
595+
$roleruleevaluationdc = str_getcsv($roleruleevaluation);
596596
if (!_simplesamlphp_auth_evaulaterolerule($roleruleevaluationdc, $attributes)) {
597597
$addnew = FALSE;
598598
}

0 commit comments

Comments
 (0)