monitoring/partials: no double-escape, qlink does so

This commit is contained in:
Thomas Gelf 2015-10-01 17:42:58 +02:00
parent 3d2521abf0
commit f886172c24
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<span class="comment-header">
<?php if ($comment->objecttype === 'service'): ?>
<?= $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',
array(
'host' => $comment->host_name,
@ -17,7 +17,7 @@
) ?>
<?php else: ?>
<?= $this->icon('host', $this->translate('Host')) ?> <?= $this->qlink(
$this->escape($comment->host_display_name),
$comment->host_display_name,
'monitoring/host/show',
array('host' => $comment->host_name),
array(

View File

@ -11,7 +11,7 @@
<span class="comment-header">
<?php if ($isService): ?>
<?= $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',
array(
'host' => $downtime->host_name,
@ -27,7 +27,7 @@
); ?>
<?php else: ?>
<?= $this->icon('host', $this->translate('host')); ?> <?= $this->qlink(
$this->escape($downtime->host_display_name),
$downtime->host_display_name,
'monitoring/host/show',
array('host' => $downtime->host_name, 'downtime_id' => $downtime->id),
array(