Commit dfa61f3f68d18ecf6dee470b40a44aa952b5b411

Authored by kevin_fourie
1 parent 3db5ea91

KTS-1837

"Admin Version Notifier is not working"
Fixed for Commercial version too. NOTE: Also added some XSS fixes to this (naughty me).

Committed By: Kevin
Reviewed By: Conrad

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6778 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/util/ktutil.inc
@@ -726,7 +726,7 @@ class KTUtil { @@ -726,7 +726,7 @@ class KTUtil {
726 $aVersions['Development OSS'] = $sVersion; 726 $aVersions['Development OSS'] = $sVersion;
727 } elseif (file_exists($sProfessionalFile)) { 727 } elseif (file_exists($sProfessionalFile)) {
728 $sVersion = trim(file_get_contents($sProfessionalFile)); 728 $sVersion = trim(file_get_contents($sProfessionalFile));
729 - $aVersions['Pro'] = $sVersion; 729 + $aVersions['Commercial'] = $sVersion;
730 } elseif (file_exists($sOssFile)) { 730 } elseif (file_exists($sOssFile)) {
731 $sVersion = trim(file_get_contents($sOssFile)); 731 $sVersion = trim(file_get_contents($sOssFile));
732 $aVersions['OSS'] = $sVersion; 732 $aVersions['OSS'] = $sVersion;
plugins/ktcore/admin/documentFieldsv2.php
@@ -305,14 +305,14 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher { @@ -305,14 +305,14 @@ class KTDocumentFieldDispatcher extends KTAdminDispatcher {
305 'name' => 'name', 305 'name' => 'name',
306 'required' => true, 306 'required' => true,
307 'description' => _kt("Each fieldset needs a unique name."), 307 'description' => _kt("Each fieldset needs a unique name."),
308 - 'value' => $this->oFieldset->getName(), 308 + 'value' => sanitizeForHTML($this->oFieldset->getName()),
309 )), 309 )),
310 array('ktcore.widgets.text',array( 310 array('ktcore.widgets.text',array(
311 'label' => _kt("Description"), 311 'label' => _kt("Description"),
312 'name' => 'description', 312 'name' => 'description',
313 'required' => true, 313 'required' => true,
314 'description' => _kt("In order to ensure that the data that users enter is useful, it is essential that you provide a good example."), 314 'description' => _kt("In order to ensure that the data that users enter is useful, it is essential that you provide a good example."),
315 - 'value' => $this->oFieldset->getDescription(), 315 + 'value' => sanitizeForHTML($this->oFieldset->getDescription()),
316 )), 316 )),
317 ); 317 );
318 318
plugins/ktcore/admin/fieldsets/basic.inc.php
@@ -219,14 +219,14 @@ class BasicFieldsetManagementDispatcher extends KTAdminDispatcher { @@ -219,14 +219,14 @@ class BasicFieldsetManagementDispatcher extends KTAdminDispatcher {
219 array('ktcore.widgets.string',array( 219 array('ktcore.widgets.string',array(
220 'label' => _kt("Field Name"), 220 'label' => _kt("Field Name"),
221 'name' => 'name', 221 'name' => 'name',
222 - 'value' => $oField->getName(), 222 + 'value' => sanitizeForHTML($oField->getName()),
223 'required' => true, 223 'required' => true,
224 'description' => _kt("Within a given fieldset, each field needs a unique name."), 224 'description' => _kt("Within a given fieldset, each field needs a unique name."),
225 )), 225 )),
226 array('ktcore.widgets.text',array( 226 array('ktcore.widgets.text',array(
227 'label' => _kt("Description"), 227 'label' => _kt("Description"),
228 'name' => 'description', 228 'name' => 'description',
229 - 'value' => $oField->getDescription(), 229 + 'value' => sanitizeForHTML($oField->getDescription()),
230 'required' => true, 230 'required' => true,
231 'description' => _kt("A good description can be the difference between useful metadata and poor metadata. At the same time, overly long descriptions are far less valuable than concise ones."), 231 'description' => _kt("A good description can be the difference between useful metadata and poor metadata. At the same time, overly long descriptions are far less valuable than concise ones."),
232 )), 232 )),