Merge pull request #10673 from MrPetovan/task/10672-contact-module-security-token
Add form security token to contact actions
This commit is contained in:
commit
18470da84a
3 changed files with 19 additions and 8 deletions
|
@ -15,7 +15,8 @@
|
|||
{{$tabs nofilter}}
|
||||
|
||||
<form action="{{$baseurl}}/contact/batch/" method="POST">
|
||||
<input type="hidden" name="redirect_url" value="{{$cmd}}"/>
|
||||
<input type="hidden" name="redirect_url" value="{{$cmd}}" />
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}" />
|
||||
{{foreach $contacts as $contact}}
|
||||
{{include file="contact_template.tpl"}}
|
||||
{{/foreach}}
|
||||
|
|
|
@ -29,7 +29,8 @@
|
|||
|
||||
{{* we need the form container to make batch actions work *}}
|
||||
<form name="batch_actions_submit" action="{{$baseurl}}/contact/batch/" method="POST">
|
||||
<input type="hidden" name="redirect_url" value="{{$cmd}}"/>
|
||||
<input type="hidden" name="redirect_url" value="{{$cmd}}" />
|
||||
<input type="hidden" name="form_security_token" value="{{$form_security_token}}" />
|
||||
|
||||
{{* we put here a hidden input element. This is needed to transmit the batch actions with javascript*}}
|
||||
<input type="hidden" class="batch-action no-input fakelist" name="batch_submit" value="{{$l}}">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue