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:
parent
e6d80ae1f6
commit
33e326a232
|
@ -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; ?>
|
||||
|
|
Loading…
Reference in New Issue