use Bugzilla;
use Bugzilla::Error;
use Bugzilla::Extension::Push::Util;
+use Bugzilla::Token qw(check_hash_token delete_token);
use Bugzilla::Util qw(trim detaint_natural trick_taint);
use base qw(Exporter);
my $input = Bugzilla->input_params;
if ($input->{save}) {
+ my $token = $input->{token};
+ check_hash_token($token, ['push_config']);
+ delete_token($token);
my $dbh = Bugzilla->dbh;
$dbh->bz_start_transaction();
_update_config_from_form('global', $push->config);
<form method="POST" action="page.cgi">
<input type="hidden" name="id" value="push_config.html">
<input type="hidden" name="save" value="1">
+<input type="hidden" id="token" name="token" value="[% issue_hash_token(['push_config']) FILTER html %]">
<table border="0" cellspacing="0" cellpadding="5" width="100%">