#69062Properly escape all form attributes in SetupModuleController
Description
Some form tag attributes are directly fetched from configuration without being escaped by htmlspecialchars().
For instance:
$class = $config['class'];
if ($type !== 'check') {
$class .= ' form-control';
}
$style = $config['style'];
if ($class) {
$more .= ' class="' . $class . '"';
}
...
$html = '<input id="field_' . $fieldName . '"
type="' . $type . '"
name="data' . $dataAdd . '[' . $fieldName . ']" ' .
$noAutocomplete .
'value="' . htmlspecialchars($value) . '" ' .
$more .
' />';
We need to make sure all added attributes are properly escaped.