monitoring/partials: no double-escape, qlink does so
This commit is contained in:
parent
3d2521abf0
commit
f886172c24
|
@ -1,7 +1,7 @@
|
||||||
<span class="comment-header">
|
<span class="comment-header">
|
||||||
<?php if ($comment->objecttype === 'service'): ?>
|
<?php if ($comment->objecttype === 'service'): ?>
|
||||||
<?= $this->icon('service', $this->translate('Service')) ?> <?= $this->qlink(
|
<?= $this->icon('service', $this->translate('Service')) ?> <?= $this->qlink(
|
||||||
$this->escape($comment->host_display_name) . ': ' . $this->escape($comment->service_display_name),
|
$comment->host_display_name . ': ' . $comment->service_display_name,
|
||||||
'monitoring/service/show',
|
'monitoring/service/show',
|
||||||
array(
|
array(
|
||||||
'host' => $comment->host_name,
|
'host' => $comment->host_name,
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
) ?>
|
) ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= $this->icon('host', $this->translate('Host')) ?> <?= $this->qlink(
|
<?= $this->icon('host', $this->translate('Host')) ?> <?= $this->qlink(
|
||||||
$this->escape($comment->host_display_name),
|
$comment->host_display_name,
|
||||||
'monitoring/host/show',
|
'monitoring/host/show',
|
||||||
array('host' => $comment->host_name),
|
array('host' => $comment->host_name),
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<span class="comment-header">
|
<span class="comment-header">
|
||||||
<?php if ($isService): ?>
|
<?php if ($isService): ?>
|
||||||
<?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink(
|
<?= $this->icon('service', $this->translate('Service')); ?> <?= $this->qlink(
|
||||||
$this->escape($downtime->host_display_name) . ': ' . $this->escape($downtime->service_display_name),
|
$downtime->host_display_name . ': ' . $downtime->service_display_name,
|
||||||
'monitoring/service/show',
|
'monitoring/service/show',
|
||||||
array(
|
array(
|
||||||
'host' => $downtime->host_name,
|
'host' => $downtime->host_name,
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
); ?>
|
); ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?= $this->icon('host', $this->translate('host')); ?> <?= $this->qlink(
|
<?= $this->icon('host', $this->translate('host')); ?> <?= $this->qlink(
|
||||||
$this->escape($downtime->host_display_name),
|
$downtime->host_display_name,
|
||||||
'monitoring/host/show',
|
'monitoring/host/show',
|
||||||
array('host' => $downtime->host_name, 'downtime_id' => $downtime->id),
|
array('host' => $downtime->host_name, 'downtime_id' => $downtime->id),
|
||||||
array(
|
array(
|
||||||
|
|
Loading…
Reference in New Issue