Commit cd0a1a13 authored by david.verdin's avatar david.verdin
Browse files

[-bug] User attributes were not correctly parsed in...

[-bug] User attributes were not correctly parsed in Sympa::User::get_global_user. This was due to the change in wwsympa.fcgi.in not reported in this sub. In addition, the cating od $user->{attributes} from string to a hash led wwsympa.fcgi to crash.


git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@10555 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 57c0b3c4
......@@ -369,9 +369,9 @@ sub get_global_user {
## Turn user_attributes into a hash
my $attributes = $user->{'attributes'};
if (defined $attributes and length $attributes) {
$user->{'attributes'} ||= {};
foreach my $attr (split(/\;/, $attributes)) {
my ($key, $value) = split(/\=/, $attr);
$user->{'attributes'} = {};
foreach my $attr (split(/__ATT_SEP__/, $attributes)) {
my ($key, $value) = split(/__PAIRS_SEP__/, $attr);
$user->{'attributes'}{$key} = $value;
}
delete $user->{'attributes'}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment