[FIX] Do not use CTOKEN if CSRF disabled
* [FIX] Workers page not checking for CTOKEN properly Fixes #1848 once merged.
This commit is contained in:
parent
9e0d1493a6
commit
9ad568a1d1
@ -63,7 +63,7 @@
|
||||
{/if}
|
||||
<td align="right">{$WORKERS[worker].hashrate|number_format}</td>
|
||||
<td align="right">{$WORKERS[worker].difficulty|number_format:"2"}</td>
|
||||
<td align="center" style="padding-right: 25px;"><a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&do=delete&id={$WORKERS[worker].id|escape}&ctoken={$CTOKEN}" class="icn_trash"><i class="icon-trash" /></a></td>
|
||||
<td align="center" style="padding-right: 25px;"><a href="{$smarty.server.SCRIPT_NAME}?page={$smarty.request.page|escape}&action={$smarty.request.action|escape}&do=delete&id={$WORKERS[worker].id|escape}{if $CTOKEN|default:""}&ctoken={$CTOKEN|escape}{/if}" class="icn_trash"><i class="icon-trash" /></a></td>
|
||||
</tr>
|
||||
{/section}
|
||||
{/nocache}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user