From 684f829581a911c52b24f784b2e54e6a6c6447f4 Mon Sep 17 00:00:00 2001
From: jf-cbd <121934370+jf-cbd@users.noreply.github.com>
Date: Mon, 16 Jun 2025 15:06:45 +0200
Subject: [PATCH 1/2] Merge commit from fork
---
application/exceptions/CoreException.php | 2 +-
setup/modulediscovery.class.inc.php | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/application/exceptions/CoreException.php b/application/exceptions/CoreException.php
index f8afd2e5c..178b5397d 100644
--- a/application/exceptions/CoreException.php
+++ b/application/exceptions/CoreException.php
@@ -67,7 +67,7 @@ class CoreException extends Exception
public function getHtmlDesc($sHighlightHtmlBegin = '', $sHighlightHtmlEnd = '')
{
- return $this->getMessage();
+ return utils::EscapeHtml($this->getMessage());
}
/**
diff --git a/setup/modulediscovery.class.inc.php b/setup/modulediscovery.class.inc.php
index 81482c678..96822a982 100644
--- a/setup/modulediscovery.class.inc.php
+++ b/setup/modulediscovery.class.inc.php
@@ -40,15 +40,17 @@ class MissingDependencyException extends CoreException
HTML;
foreach ($this->aModulesInfo as $sModuleId => $aModuleErrors) {
- $sModuleLabel = $aModuleErrors['module']['label'];
+ $sModuleLabel = utils::EscapeHtml($aModuleErrors['module']['label']);
+ $sModuleId = utils::EscapeHtml($sModuleId);
$aModuleMissingDependencies = $aModuleErrors['dependencies'];
$sErrorMessage .= <<{$sModuleLabel} ({$sModuleId}):
+ - $sModuleLabel ($sModuleId):
HTML;
foreach ($aModuleMissingDependencies as $sMissingModule) {
- $sErrorMessage .= "- {$sMissingModule}
";
+ $sMissingModule = utils::EscapeHtml($sMissingModule);
+ $sErrorMessage .= "- $sMissingModule
";
}
$sErrorMessage .= <<
From 84476a869f17bfa9e8b03bb03ad025abdc127b41 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Rudner?=
Date: Mon, 16 Jun 2025 16:25:22 +0200
Subject: [PATCH 2/2] :art: remove outdated or duplicated elemets (#726)
---
.../2.x/authent-ldap/datamodel.authent-ldap.xml | 2 --
.../datamodel.itop-change-mgmt-itil.xml | 4 ++--
.../itop-change-mgmt/datamodel.itop-change-mgmt.xml | 1 -
.../itop-config-mgmt/datamodel.itop-config-mgmt.xml | 11 +++++++----
.../datamodel.itop-datacenter-mgmt.xml | 1 -
5 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/datamodels/2.x/authent-ldap/datamodel.authent-ldap.xml b/datamodels/2.x/authent-ldap/datamodel.authent-ldap.xml
index f063cde1e..61904358f 100644
--- a/datamodels/2.x/authent-ldap/datamodel.authent-ldap.xml
+++ b/datamodels/2.x/authent-ldap/datamodel.authent-ldap.xml
@@ -21,12 +21,10 @@
id
- %1$s
-
diff --git a/datamodels/2.x/itop-change-mgmt-itil/datamodel.itop-change-mgmt-itil.xml b/datamodels/2.x/itop-change-mgmt-itil/datamodel.itop-change-mgmt-itil.xml
index e5b6e0b33..71683f396 100755
--- a/datamodels/2.x/itop-change-mgmt-itil/datamodel.itop-change-mgmt-itil.xml
+++ b/datamodels/2.x/itop-change-mgmt-itil/datamodel.itop-change-mgmt-itil.xml
@@ -46,12 +46,12 @@
rank
- approved
+
approved
60
- assigned
+
assigned
40
diff --git a/datamodels/2.x/itop-change-mgmt/datamodel.itop-change-mgmt.xml b/datamodels/2.x/itop-change-mgmt/datamodel.itop-change-mgmt.xml
index a0546d17a..25847dff5 100755
--- a/datamodels/2.x/itop-change-mgmt/datamodel.itop-change-mgmt.xml
+++ b/datamodels/2.x/itop-change-mgmt/datamodel.itop-change-mgmt.xml
@@ -380,7 +380,6 @@
-
diff --git a/datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml b/datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml
index e5f341eb1..81d829363 100755
--- a/datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml
+++ b/datamodels/2.x/itop-config-mgmt/datamodel.itop-config-mgmt.xml
@@ -4351,7 +4351,6 @@
-
20
- 20
@@ -5736,8 +5735,7 @@
-
-
+
@@ -7230,7 +7228,12 @@
- - 70
>
+
+
+ -
+ 70
+
+
diff --git a/datamodels/2.x/itop-datacenter-mgmt/datamodel.itop-datacenter-mgmt.xml b/datamodels/2.x/itop-datacenter-mgmt/datamodel.itop-datacenter-mgmt.xml
index 53761c606..c540cd929 100755
--- a/datamodels/2.x/itop-datacenter-mgmt/datamodel.itop-datacenter-mgmt.xml
+++ b/datamodels/2.x/itop-datacenter-mgmt/datamodel.itop-datacenter-mgmt.xml
@@ -797,7 +797,6 @@
true
DEL_MANUAL
false
- false
powerstart_id