list/services: ignore broken service image hacks

People used to configure something like "dot.png'> <img ..." as their
service image icon. Those hacks will no longer work as we correctly
escape everything. This fix hinders Icingaweb from even trying to load
them.
This commit is contained in:
Thomas Gelf 2014-05-20 13:31:13 +00:00
parent e6d80ae1f6
commit 33e326a232
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ foreach ($services as $service):
<?php endif ?>
<?php endif ?>
<?php if ($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)) ?>
<?php endif ?>
<a href="<?= $serviceLink ?>"><?= $service->service_display_name ?></a><?php if ($this->showHost): ?> on <a href="<?= $hostLink ?>"><?= $service->host_name; ?>