diff --git a/www/include/configuration/configObject/service_template_model/listServiceTemplateModel.ihtml b/www/include/configuration/configObject/service_template_model/listServiceTemplateModel.ihtml
index a89a4b099fb..59bb447acba 100644
--- a/www/include/configuration/configObject/service_template_model/listServiceTemplateModel.ihtml
+++ b/www/include/configuration/configObject/service_template_model/listServiceTemplateModel.ihtml
@@ -76,7 +76,7 @@
{$elemArr[elem].RowMenu_alias} |
{$elemArr[elem].RowMenu_retry} |
- {$elemArr[elem].RowMenu_parent} |
+ {$elemArr[elem].RowMenu_parent} |
|
{if $mode_access == 'w' }{$elemArr[elem].RowMenu_options}{else} {/if} |
diff --git a/www/include/configuration/configObject/service_template_model/listServiceTemplateModel.php b/www/include/configuration/configObject/service_template_model/listServiceTemplateModel.php
index 8467ce4dc8d..b611b5d96c5 100644
--- a/www/include/configuration/configObject/service_template_model/listServiceTemplateModel.php
+++ b/www/include/configuration/configObject/service_template_model/listServiceTemplateModel.php
@@ -172,7 +172,8 @@
foreach ($tplArr as $key => $value) {
$value = str_replace('#S#', "/", $value);
$value = str_replace('#BS#', "\\", $value);
- $tplStr .= " -> " . $value . "";
+ $tplStr .= " -> "
+ . htmlentities($value) . "";
}
}
@@ -228,7 +229,7 @@
"RowMenu_select" => $selectedElements->toHtml(),
"RowMenu_desc" => htmlentities($service["service_description"]),
"RowMenu_alias" => htmlentities($service["service_alias"]),
- "RowMenu_parent" => htmlentities($tplStr),
+ "RowMenu_parent" => $tplStr,
"RowMenu_icon" => $svc_icon,
"RowMenu_retry" => htmlentities(
"$normal_check_interval $normal_units / $retry_check_interval $retry_units"