Skip to content

Commit

Permalink
fix absolute injection (netdata#19496)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou authored Jan 27, 2025
1 parent 76e4809 commit 0a834fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/api/v2/api_v2_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ int api_v2_data(RRDHOST *host __maybe_unused, struct web_client *w, char *url) {
group_by[0].group_by = RRDR_GROUP_BY_DIMENSION;

for(size_t g = 0; g < MAX_QUERY_GROUP_BY_PASSES ;g++) {
if ((group_by[g].group_by & ~(RRDR_GROUP_BY_DIMENSION)) || (options & RRDR_OPTION_PERCENTAGE)) {
if (!(group_by[g].group_by & RRDR_GROUP_BY_DIMENSION) || (options & RRDR_OPTION_PERCENTAGE)) {
options |= RRDR_OPTION_ABSOLUTE;
break;
}
Expand Down

0 comments on commit 0a834fd

Please sign in to comment.