Skip to content

Commit

Permalink
Provide a fallback for contents of .wgaccess files. Fixes bug #12328
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Feb 25, 2012
1 parent 99fa73a commit d2f157d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/changelog/7.x.x.txt
Expand Up @@ -4,6 +4,7 @@
- fixed #12327: HttpProxy does not clean up cookie jar storage locations
- fixed #12329: FlatDiscount Sku forces you to enter in negative numbers for price
- fixed #12334: Company name with : in it breaks email sender identity
- fixed #12328: invalid wgaccess file in uploads

7.10.24
- fixed #12318: asset error causes asset manager to fail
Expand Down
6 changes: 3 additions & 3 deletions lib/WebGUI/URL/Uploads.pm
Expand Up @@ -69,9 +69,9 @@ sub handler {
}
else {
my $privs = JSON->new->decode($fileContents);
@users = @{ $privs->{users} };
@groups = @{ $privs->{groups} };
@assets = @{ $privs->{assets} };
@users = @{ $privs->{users} || [] };
@groups = @{ $privs->{groups} || [] };
@assets = @{ $privs->{assets} || [] };
$state = $privs->{state};
}

Expand Down

0 comments on commit d2f157d

Please sign in to comment.