mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-20 03:36:20 +02:00
52a7df2b3a
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
37 lines
1.1 KiB
Smarty
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> </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"><label>{$PALANG.pSendmail_to}:</label></td>
|
|
<td><input class="flat" type="text" name="fTo" /></td>
|
|
<td> </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> </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> </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label"> </td>
|
|
<td colspan="2"><input class="button" type="submit" name="submit" value="{$PALANG.pSendmail_button}" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|