--- C:/Users/Niklas/Downloads/mantisbt-1.2.3/bugnote_add.php Di 14. Sep 15:40:10 2010 +++ C:/Users/Niklas/Downloads/bugnote_add.php Do 11. Nov 15:16:48 2010 @@ -36,7 +36,21 @@ $f_private = gpc_get_bool( 'private' ); $f_time_tracking = gpc_get_string( 'time_tracking', '0:00' ); $f_bugnote_text = trim( gpc_get_string( 'bugnote_text', '' ) ); + + // begin stone captcha check for anon user + if (current_user_is_anonymous()) + { + $f_captcha = gpc_get_string( 'captcha', '' ); + $f_public_key = gpc_get_int( 'public_key', '' ); + $f_captcha = strtolower( trim( $f_captcha ) ); + $t_key = strtolower( substr( md5( config_get( 'password_confirm_hash_magic_string' ) . $f_public_key ), 1, 5) ); + if ( $t_key != $f_captcha ) { + trigger_error( ERROR_SIGNUP_NOT_MATCHING_CAPTCHA, ERROR ); + } + } + // end of stone captcha check for anon user + $t_bug = bug_get( $f_bug_id, true ); if( $t_bug->project_id != helper_get_current_project() ) { # in case the current project is not the same project of the bug we are viewing...