diff --git a/plugins/ktcore/admin/documentTypes.php b/plugins/ktcore/admin/documentTypes.php index 310a945..ad5e920 100755 --- a/plugins/ktcore/admin/documentTypes.php +++ b/plugins/ktcore/admin/documentTypes.php @@ -39,6 +39,8 @@ require_once(KT_LIB_DIR . '/metadata/metadatautil.inc.php'); require_once(KT_LIB_DIR . "/widgets/fieldWidgets.php"); require_once(KT_LIB_DIR . "/templating/kt3template.inc.php"); +require_once(KT_LIB_DIR . "/util/sanitize.inc"); + class KTDocumentTypeDispatcher extends KTAdminDispatcher { var $sHelpPage = 'ktcore/admin/document types.html'; @@ -159,6 +161,7 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { $oTemplate->setData(array( 'context' => $this, 'oDocumentType' => $oDocumentType, + 'sDocTypeName' => sanitizeForHTML($oDocumentType->getName()), 'aCurrentFieldsets' => $aCurrentFieldsets, 'bAnyFieldsets' => count($aAvailableFieldsets) > 0, 'bAvailableFieldsets' => count($vocab) > 0, diff --git a/templates/ktcore/documenttypes/edit.smarty b/templates/ktcore/documenttypes/edit.smarty index b46227d..13000a1 100644 --- a/templates/ktcore/documenttypes/edit.smarty +++ b/templates/ktcore/documenttypes/edit.smarty @@ -3,7 +3,7 @@
- +