Skip to content

Commit

Permalink
Add CSRF protection for bug_assign_reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhicks committed Jul 6, 2009
1 parent 2e3c614 commit 88b4537
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bug_assign_reporter.php
Expand Up @@ -29,7 +29,7 @@

require_once( 'bug_api.php' );

# helper_ensure_post();
form_security_validate( 'bug_assign_reporter' );

$f_bug_id = gpc_get_int( 'bug_id' );

Expand All @@ -44,4 +44,6 @@

bug_assign( $f_bug_id, bug_get_field( $f_bug_id, 'reporter_id') );

form_security_purge( 'bug_assign_reporter' );

print_successful_redirect_to_bug( $f_bug_id );

0 comments on commit 88b4537

Please sign in to comment.