Skip to content

Commit d2f157d

Browse files
committedFeb 25, 2012
Provide a fallback for contents of .wgaccess files. Fixes bug #12328
1 parent 99fa73a commit d2f157d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎docs/changelog/7.x.x.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- fixed #12327: HttpProxy does not clean up cookie jar storage locations
55
- fixed #12329: FlatDiscount Sku forces you to enter in negative numbers for price
66
- fixed #12334: Company name with : in it breaks email sender identity
7+
- fixed #12328: invalid wgaccess file in uploads
78

89
7.10.24
910
- fixed #12318: asset error causes asset manager to fail

‎lib/WebGUI/URL/Uploads.pm

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ sub handler {
6969
}
7070
else {
7171
my $privs = JSON->new->decode($fileContents);
72-
@users = @{ $privs->{users} };
73-
@groups = @{ $privs->{groups} };
74-
@assets = @{ $privs->{assets} };
72+
@users = @{ $privs->{users} || [] };
73+
@groups = @{ $privs->{groups} || [] };
74+
@assets = @{ $privs->{assets} || [] };
7575
$state = $privs->{state};
7676
}
7777

0 commit comments

Comments
 (0)
Please sign in to comment.