diff --git a/filemin/index.cgi b/filemin/index.cgi
index 854ce4ea2..279d4ecd0 100755
--- a/filemin/index.cgi
+++ b/filemin/index.cgi
@@ -43,10 +43,10 @@ unless (opendir ( DIR, $cwd )) {
foreach my $aclsStr (split(/\n\n/, $output)) {
$aclsStr =~ /#\s+file:\s*(.*)/;
my ($file) = ($aclsStr =~ /#\s+file:\s*(.*)/);
- my @aclsA = ($aclsStr =~ /^(?!#)([\w:-]+)/gm);
+ my @aclsA = ($aclsStr =~ /^(?!(#|user::|group::|other::))([\w\:\-\_]+)/gm);
push(@aclsArr, [$file, \@aclsA]);
}
- %acls = map {$_->[0] => ('' . join("
", @{$_->[1]}) . '')} @aclsArr;
+ %acls = map {$_->[0] => ('' . join("
", (grep /\S/, @{ $_->[1] })) . '')} @aclsArr;
}
# List attributes