MantisBT: master-1.2.x a45d0ef5

Author Committer Branch Timestamp Parent
dhx master-1.2.x 2009-07-06 10:12 master-1.2.x 948f0b89
Changeset

Add CSRF protection to print_button function

As an additional note for this patch, we should ideally be sending
parameters to this function via $p_args_to_post where those parameters
are being used to change the state of Mantis. At the moment a form
security token is created for every call of print_button whereas we
really only need to do it when !empty($p_args_to_post). This requires a
bit of extra work outside the scope of this patch, and almost all uses of
print_button are to modify Mantis in some way, hence this partial fix.

mod - manage_proj_edit_page.php Diff File
mod - manage_proj_page.php Diff File
mod - core/print_api.php Diff File