--- C:/Users/Niklas/Downloads/mantisbt-1.2.3/bug_report.php	Di 14. Sep 15:40:10 2010
+++ C:/Users/Niklas/Downloads/bug_report.php	Do 11. Nov 15:18:45 2010
@@ -78,6 +78,20 @@
 		$t_bug_data->target_version = gpc_get_string( 'target_version', '' );
 	}
 
+	// 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
+	
 	# if a profile was selected then let's use that information
 	if ( 0 != $t_bug_data->profile_id ) {
 		if ( profile_is_global( $t_bug_data->profile_id ) ) {
