Skip to content

Commit 7af2f47

Browse files
committedSep 5, 2011
Fix #13141: Incorrect parameters to config_get function
Thanks to Todd Whitesel for finding this problem in filter_api.php and to Roland Becker for providing further assistance. I have grepped the source code and reviewed all other calls to config_get to ensure they correctly use parameters. There was one additional bug discovered in bug_report_page.php. Conflicts: bug_report_page.php
1 parent 887d9e5 commit 7af2f47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎bug_report_page.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
$t_bug = bug_get( $f_master_bug_id, true );
101101

102102
# the user can at least update the master bug (needed to add the relationship)...
103-
access_ensure_bug_level( config_get( 'update_bug_threshold', null, $t_bug->project_id ), $f_master_bug_id );
103+
access_ensure_bug_level( config_get( 'update_bug_threshold', null, null, $t_bug->project_id ), $f_master_bug_id );
104104

105105
#@@@ (thraxisp) Note that the master bug is cloned into the same project as the master, independent of
106106
# what the current project is set to.

‎core/filter_api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4462,7 +4462,7 @@ function filter_db_get_filter( $p_filter_id, $p_user_id = null ) {
44624462
}
44634463

44644464
# check that the user has access to non current filters
4465-
if(( ALL_PROJECTS <= $row['project_id'] ) && ( !is_blank( $row['name'] ) ) && ( !access_has_project_level( config_get( 'stored_query_use_threshold', $row['project_id'], $t_user_id ) ) ) ) {
4465+
if(( ALL_PROJECTS <= $row['project_id'] ) && ( !is_blank( $row['name'] ) ) && ( !access_has_project_level( config_get( 'stored_query_use_threshold', null, $t_user_id, $row['project_id'] ) ) ) ) {
44664466
return null;
44674467
}
44684468

0 commit comments

Comments
 (0)
Please sign in to comment.