mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
monitoring: Escape host and service display_name in the services overview
This commit is contained in:
parent
9018b36d7a
commit
bfd1332891
@ -107,7 +107,7 @@ foreach ($services as $service):
|
|||||||
<?php if ($service->service_icon_image && ! preg_match('/[\'"]/', $service->service_icon_image)): ?>
|
<?php if ($service->service_icon_image && ! preg_match('/[\'"]/', $service->service_icon_image)): ?>
|
||||||
<?= $this->icon($this->resolveMacros($service->service_icon_image, $service)) ?>
|
<?= $this->icon($this->resolveMacros($service->service_icon_image, $service)) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<a href="<?= $serviceLink ?>"><?= $service->service_display_name ?></a><?php if ($this->showHost): ?> on <a href="<?= $hostLink ?>"><?= $service->host_display_name; ?>
|
<a href="<?= $serviceLink ?>"><?= $this->escape($service->service_display_name) ?></a><?php if ($this->showHost): ?> on <a href="<?= $hostLink ?>"><?= $this->escape($service->host_display_name) ?>
|
||||||
<?php if ($service->host_state != 0): ?>
|
<?php if ($service->host_state != 0): ?>
|
||||||
(<?= strtoupper(Host::getStateText($service->host_state, true)); ?>)
|
(<?= strtoupper(Host::getStateText($service->host_state, true)); ?>)
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user