From: <vb...@us...> - 2002-10-10 12:42:26
|
Update of /cvsroot/mantisbt/mantisbt In directory usw-pr-cvs1:/tmp/cvs-serv31437 Modified Files: bug_view_advanced_page.php bug_view_page.php Log Message: Fixed problems with padding bug ids and bug note ids with 0. Added APIs to do this job. In some cases no padding was done, and in others str_pad was called with the wrong parameters. Index: bug_view_advanced_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_view_advanced_page.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bug_view_advanced_page.php 21 Sep 2002 10:17:13 -0000 1.1 +++ bug_view_advanced_page.php 10 Oct 2002 12:42:22 -0000 1.2 @@ -13,6 +13,7 @@ # @@@@ Bug History - consider logging the fact that defect was published and by who. $f_id = gpc_get_int( 'f_id' ); + $f_id = bug_format_id ( $f_id ); $f_check = gpc_get_string( 'f_check', '' ); $f_history = gpc_get_bool( 'f_history' ); Index: bug_view_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/bug_view_page.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- bug_view_page.php 21 Sep 2002 10:17:13 -0000 1.1 +++ bug_view_page.php 10 Oct 2002 12:42:22 -0000 1.2 @@ -8,11 +8,13 @@ <?php require_once( 'core.php' ) ?> <?php login_cookie_check() ?> <?php + $f_id = gpc_get_int( 'f_id' ); + $f_id = bug_format_id( $f_id ); + if ( ADVANCED_ONLY == $g_show_view ) { print_header_redirect ( 'bug_view_advanced_page.php?f_id='.$f_id ); } - $f_id = gpc_get_int( 'f_id' ); $f_history = gpc_get_bool( 'f_history' ); $c_id = (integer)$f_id; |