mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
Escape backend names in authentication backend reorder form
This commit is contained in:
parent
e407f6d116
commit
172ebd0fd4
@ -40,30 +40,26 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="icon-col text-right" data-base-target="_self">
|
<td class="icon-col text-right" data-base-target="_self">
|
||||||
<?php if ($i > 0): ?>
|
<?php if ($i > 0): ?>
|
||||||
<button type="submit" name="backend_newpos" class="link-button icon-only animated move-up" value="<?= sprintf(
|
<button type="submit" name="backend_newpos" class="link-button icon-only animated move-up" value="<?= $this->escape(
|
||||||
'%s|%s',
|
$backendNames[$i] . '|' . ($i - 1)
|
||||||
$backendNames[$i],
|
|
||||||
$i - 1
|
|
||||||
) ?>" title="<?= $this->translate(
|
) ?>" title="<?= $this->translate(
|
||||||
'Move up in authentication order'
|
'Move up in authentication order'
|
||||||
) ?>" aria-label="<?= sprintf(
|
) ?>" aria-label="<?= $this->escape(sprintf(
|
||||||
$this->translate('Move user backend %s upwards'),
|
$this->translate('Move user backend %s upwards'),
|
||||||
$backendNames[$i]
|
$backendNames[$i]
|
||||||
) ?>">
|
)) ?>">
|
||||||
<?= $this->icon('up-small') ?>
|
<?= $this->icon('up-small') ?>
|
||||||
</button>
|
</button>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php if ($i + 1 < count($backendNames)): ?>
|
<?php if ($i + 1 < count($backendNames)): ?>
|
||||||
<button type="submit" name="backend_newpos" class="link-button icon-only animated move-down" value="<?= sprintf(
|
<button type="submit" name="backend_newpos" class="link-button icon-only animated move-down" value="<?= $this->escape(
|
||||||
'%s|%s',
|
$backendNames[$i] . '|' . ($i + 1)
|
||||||
$backendNames[$i],
|
|
||||||
$i + 1
|
|
||||||
) ?>" title="<?= $this->translate(
|
) ?>" title="<?= $this->translate(
|
||||||
'Move down in authentication order'
|
'Move down in authentication order'
|
||||||
) ?>" aria-label="<?= sprintf(
|
) ?>" aria-label="<?= $this->escape(sprintf(
|
||||||
$this->translate('Move user backend %s downwards'),
|
$this->translate('Move user backend %s downwards'),
|
||||||
$backendNames[$i]
|
$backendNames[$i]
|
||||||
) ?>">
|
)) ?>">
|
||||||
<?= $this->icon('down-small') ?>
|
<?= $this->icon('down-small') ?>
|
||||||
</button>
|
</button>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user