<ul class="scrollableCheckboxList" {*
- *}id="lineBreakSeparatedTextOption_{@$identifier}"{*
+ *}id="lineBreakSeparatedTextOption_{$identifier}"{*
*}{if $values|empty} style="display: none"{/if}{*
*}>
{foreach from=$values item=value}
});
new UiItemListLineBreakSeparatedText(
- document.getElementById("lineBreakSeparatedTextOption_{@$identifier}")
+ document.getElementById("lineBreakSeparatedTextOption_{@$identifier|encodeJS}")
);
});
</script>
-<input type="{@$inputType}" id="{$option->optionName}" name="values[{$option->optionName}]" value="{$value}"{if $option->minlength > 0 || $option->required} required{/if}{if $option->maxlength} maxlength="{$option->maxlength}"{/if}{if $inputClass} class="{@$inputClass}"{/if}>
+<input type="{$inputType}" id="{$option->optionName}" name="values[{$option->optionName}]" value="{$value}"{if $option->minlength > 0 || $option->required} required{/if}{if $option->maxlength} maxlength="{$option->maxlength}"{/if}{if $inputClass} class="{$inputClass}"{/if}>
-<input type="{@$inputType}" id="{$option->optionName}" name="values[{$option->optionName}]" value="{$value}"{if $inputClass} class="{@$inputClass}"{/if}{if $inputType == 'password'} autocomplete="new-password"{elseif $option->disableAutocomplete} autocomplete="off"{/if}>
+<input type="{$inputType}" id="{$option->optionName}" name="values[{$option->optionName}]" value="{$value}"{if $inputClass} class="{$inputClass}"{/if}{if $inputType == 'password'} autocomplete="new-password"{elseif $option->disableAutocomplete} autocomplete="off"{/if}>
static $identifiers = [];
do {
- $identifier = \substr(StringUtil::getRandomID(), 0, 8);
+ $identifier = \bin2hex(\random_bytes(4));
} while (\in_array($identifier, $identifiers));
$identifiers[] = $identifier;