mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 09:26:27 +02:00
Fix command bash injection using filename + add constant to disable commands
This commit is contained in:
parent
3839742f58
commit
39caa92a62
3 changed files with 25 additions and 4 deletions
|
@ -80,9 +80,11 @@
|
|||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li <?php echo $page == 'commands' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \descartes\Router::url('Command', 'list'); ?>"><i class="fa fa-fw fa-terminal"></i> Commandes</a>
|
||||
</li>
|
||||
<?php if (ENABLE_COMMAND) { ?>
|
||||
<li <?php echo $page == 'commands' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \descartes\Router::url('Command', 'list'); ?>"><i class="fa fa-fw fa-terminal"></i> Commandes</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<?php if ($_SESSION['user']['settings']['webhook'] ?? false) { ?>
|
||||
<li <?php echo $page == 'webhooks' ? 'class="active"' : ''; ?>>
|
||||
<a href="<?php echo \descartes\Router::url('Webhook', 'list'); ?>"><i class="fa fa-fw fa-plug"></i> Webhooks</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue