diff --git a/typo3/sysext/backend/Classes/Form/Element/InputTextElement.php b/typo3/sysext/backend/Classes/Form/Element/InputTextElement.php index f6b763c747fc..8070775fce68 100644 --- a/typo3/sysext/backend/Classes/Form/Element/InputTextElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/InputTextElement.php @@ -95,7 +95,7 @@ public function render() if ($config['readOnly'] ?? false) { // Early return for read only fields if (in_array('password', $evalList, true)) { - $itemValue = $itemValue ? '*********' : ''; + $itemValue = $this->getObfuscatedSecretValue($itemValue); } $disabledFieldAttributes = [ @@ -240,6 +240,7 @@ public function render() $fieldWizardHtml = $fieldWizardResult['html']; $resultArray = $this->mergeChildReturnIntoExistingResult($resultArray, $fieldWizardResult, false); $inputType = 'text'; + $hiddenElementProps = ' value="' . htmlspecialchars((string)$itemValue) . '"'; if (in_array('email', $evalList, true)) { $inputType = 'email'; @@ -255,6 +256,7 @@ public function render() } if (in_array('password', $evalList, true)) { $attributes['spellcheck'] = 'false'; + $hiddenElementProps = ' value="' . htmlspecialchars($this->getObfuscatedSecretValue($itemValue)) . '" disabled data-enable-on-modification="true"'; } $mainFieldHtml = []; @@ -262,7 +264,7 @@ public function render() $mainFieldHtml[] = '