Skip to content

Commit

Permalink
rest: brackets are required
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Nov 7, 2024
1 parent f757245 commit efd9172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Thruk/Controller/rest_v1.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ sub _apply_sort {
$key = $alias_columns->{$key} if defined $alias_columns->{$key};

# check for nasty chars
die("sort key contains invalid characters") if($key =~ m/[`\$\(>'"]/mx);
die("sort key contains invalid characters") if($key =~ m/[`\$>'"]/mx);

# sort numeric
if( defined $data->[0]->{$key} and Thruk::Backend::Manager::looks_like_number($data->[0]->{$key}) ) {
Expand Down

0 comments on commit efd9172

Please sign in to comment.