Skip to content

Commit

Permalink
Add form security tokens to prevent CSRF issues
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@5352 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
giallu committed Jun 10, 2008
1 parent 70d2220 commit 543ccb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions account_page.php
Expand Up @@ -93,6 +93,7 @@
<?php } ?>
<div align="center">
<form method="post" action="account_update.php">
<?php echo form_security_field( 'account_update' )?>
<table class="width75" cellspacing="1">

<!-- Headings -->
Expand Down
2 changes: 1 addition & 1 deletion account_update.php
Expand Up @@ -31,7 +31,7 @@

require_once( $t_core_path.'email_api.php' );

helper_ensure_post();
form_security_validate('account_update');

auth_ensure_user_authenticated();

Expand Down

0 comments on commit 543ccb2

Please sign in to comment.