Skip to content

Commit

Permalink
Add form security tokens to prevent CSRF issues
Browse files Browse the repository at this point in the history
  • Loading branch information
giallu committed Jun 13, 2008
1 parent a39a077 commit 9ec4203
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions account_prof_edit_page.php
Expand Up @@ -65,6 +65,7 @@
<br />
<div align="center">
<form method="post" action="account_prof_update.php">
<?php echo form_security_field( 'profile_update' )?>
<input type="hidden" name="action" value="update">
<table class="width75" cellspacing="1">
<tr>
Expand Down
2 changes: 2 additions & 0 deletions account_prof_menu_page.php
Expand Up @@ -74,6 +74,7 @@
<br />
<div align="center">
<form method="post" action="account_prof_update.php">
<?php echo form_security_field( 'profile_update' )?>
<input type="hidden" name="action" value="add">
<table class="width75" cellspacing="1">
<tr>
Expand Down Expand Up @@ -142,6 +143,7 @@
<br />
<div align="center">
<form method="post" action="account_prof_update.php">
<?php echo form_security_field( 'profile_update' )?>
<table class="width75" cellspacing="1">
<tr>
<td class="form-title" colspan="2">
Expand Down
2 changes: 1 addition & 1 deletion account_prof_update.php
Expand Up @@ -30,7 +30,7 @@

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

helper_ensure_post();
form_security_validate('profile_update');

auth_ensure_user_authenticated();

Expand Down

0 comments on commit 9ec4203

Please sign in to comment.