Skip to content

Commit

Permalink
Fix ensure filter is valid
Browse files Browse the repository at this point in the history
Keep the validation for externally provided filters.
It was removed after the rewrite, but some callers like
my_view_page is sending partial filter arrays.
  • Loading branch information
cproensa authored and dregad committed Mar 5, 2018
1 parent c1833bb commit 5988e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/filter_api.php
Expand Up @@ -1317,7 +1317,7 @@ function filter_get_bug_rows( &$p_page_number, &$p_per_page, &$p_page_count, &$p
if( $p_custom_filter === null ) {
$t_filter = filter_get_bug_rows_filter( $p_project_id, $p_user_id );
} else {
$t_filter = $p_custom_filter;
$t_filter = filter_ensure_valid_filter( $p_custom_filter );
}

# build a filter query, here for counting results
Expand Down

0 comments on commit 5988e25

Please sign in to comment.