Skip to content

Commit

Permalink
Added CSRF protection to bug update form.
Browse files Browse the repository at this point in the history
  • Loading branch information
amyreese committed May 22, 2008
1 parent 70076d6 commit bf8ea04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bug_update.php
Expand Up @@ -31,7 +31,7 @@
require_once( $t_core_path.'bugnote_api.php' );
require_once( $t_core_path.'custom_field_api.php' );

helper_ensure_post();
form_security_validate( 'bug_update' );

$f_bug_id = gpc_get_int( 'bug_id' );
$f_update_mode = gpc_get_bool( 'update_mode', FALSE ); # set if called from generic update page
Expand Down
1 change: 1 addition & 0 deletions bug_update_advanced_page.php
Expand Up @@ -65,6 +65,7 @@

<br />
<form method="post" action="bug_update.php">
<?php echo form_security_token( 'bug_update' ) ?>
<table class="width100" cellspacing="1">
<tr>
<td class="form-title" colspan="3">
Expand Down
1 change: 1 addition & 0 deletions bug_update_page.php
Expand Up @@ -65,6 +65,7 @@

<br />
<form method="post" action="bug_update.php">
<?php echo form_security_token( 'bug_update' ) ?>
<table class="width100" cellspacing="1">


Expand Down

0 comments on commit bf8ea04

Please sign in to comment.