fixed: UserList asset has SQL injection bug
This commit is contained in:
parent
007391d5f1
commit
06d61ec19d
2 changed files with 6 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
- fixed #11541: running workflows screen
|
||||
- fixed #11544: VersionTag Workflows with missing Version Tags run forever
|
||||
- fixed #11555: Wiki subcategories entry field is not labeled
|
||||
- fixed: UserList asset has SQL injection bug
|
||||
|
||||
7.9.4
|
||||
- We're shipping underscore.js now for its suite of extremely handy utility
|
||||
|
|
|
|||
|
|
@ -506,12 +506,16 @@ sub view {
|
|||
$sql .= " and ".$constraint if ($constraint);
|
||||
|
||||
my $sortBy = $form->process('sortBy') || $self->get('sortBy') || 'users.username';
|
||||
my $sortOrder = $form->process('sortOrder') || $self->get('sortOrder') || 'asc';
|
||||
my $sortOrder = $form->process('sortOrder') || $self->get('sortOrder');
|
||||
if (lc $sortOrder ne 'desc') {
|
||||
$sortOrder = 'asc';
|
||||
}
|
||||
|
||||
my @sortByUserProperties = ('dateCreated', 'lastUpdated', 'karma', 'userId');
|
||||
if(isIn($sortBy,@sortByUserProperties)){
|
||||
$sortBy = 'users.'.$sortBy;
|
||||
}
|
||||
$sortBy = join '.', map { $self->session->db->quoteIdentifier } split /\./, $sortBy;
|
||||
$sql .= " order by ".$sortBy." ".$sortOrder;
|
||||
|
||||
($defaultPublicProfile) = $self->session->db->quickArray("SELECT dataDefault FROM userProfileField WHERE fieldName='publicProfile'");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue