mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Add the validation of the CSRF token. It is missing in some cases when it is sent by GET or POST.
This commit is contained in:
parent
2da2c539f1
commit
7603cdea7a
9 changed files with 49 additions and 1 deletions
|
@ -54,7 +54,7 @@
|
|||
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">
|
||||
<div class="actions-panel clearfix">
|
||||
<div class="actions-panel__col actions-panel__configure shortcut-enter" key-action="href"><a href="/edit/server/"><?=__('configure')?> <i></i></a><span class="shortcut enter"> ↵</span></div>
|
||||
<div class="actions-panel__col actions-panel__restart shortcut-r" key-action="href"><a href="/restart/system/?hostname=<?php echo $sys['sysinfo']['HOSTNAME'] ?>"><?=__('restart')?> <i></i></a><span class="shortcut"> R</span></div>
|
||||
<div class="actions-panel__col actions-panel__restart shortcut-r" key-action="href"><a href="/restart/system/?hostname=<?php echo $sys['sysinfo']['HOSTNAME'] ?>&token=<?=$_SESSION['token']?>"><?=__('restart')?> <i></i></a><span class="shortcut"> R</span></div>
|
||||
</div>
|
||||
<!-- /.actions-panel -->
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue