0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/templates/sendmail.tpl
Christian Boltz 52a7df2b3a Add CSRF protection for POST requests
Add the CSRF token to all forms, and validate it when those forms are
submitted.

https://sourceforge.net/p/postfixadmin/bugs/372/



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1842 a1433add-5e2c-0410-b055-b7f2511e0802
2016-05-20 20:42:04 +00:00

37 lines
1.1 KiB
Smarty

<div id="edit_form">
<form name="mailbox" method="post" action="">
<input class="flat" type="hidden" name="token" value="{$smarty.session.PFA_token|escape:"url"}" />
<table>
<tr>
<th colspan="3">{$PALANG.pSendmail_welcome}</th>
</tr>
<tr>
<td class="label"><label>{$PALANG.from}:</label></td>
<td><em>{$smtp_from_email}</em></td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="label"><label>{$PALANG.pSendmail_to}:</label></td>
<td><input class="flat" type="text" name="fTo" /></td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="label"><label>{$PALANG.subject}:</label></td>
<td><input class="flat" type="text" name="fSubject" value="{$PALANG.pSendmail_subject_text}" /></td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="label"><label>{$PALANG.pSendmail_body}:</label></td>
<td>
<textarea class="flat" rows="10" cols="60" name="fBody">{$CONF.welcome_text}</textarea>
</td>
<td>&nbsp;</td>
</tr>
<tr>
<td class="label">&nbsp;</td>
<td colspan="2"><input class="button" type="submit" name="submit" value="{$PALANG.pSendmail_button}" /></td>
</tr>
</table>
</form>
</div>