DEV: Don't interpret user field names as HTML (#18317)
This isn't a security bug, because only admins can create user fields and we have to trust admins, because they can change themes, which are shown site-wide and can contain unrestricted JS.
This commit is contained in:
parent
a11aea4fe2
commit
e37ced96bf
|
@ -1,6 +1,6 @@
|
||||||
{{#if this.field.name}}
|
{{#if this.field.name}}
|
||||||
<label class="control-label">
|
<label class="control-label">
|
||||||
{{html-safe this.field.name}} {{#if this.field.required}}<span class="required">*</span>{{/if}}
|
{{this.field.name}} {{#if this.field.required}}<span class="required">*</span>{{/if}}
|
||||||
</label>
|
</label>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<label class="control-label" for={{concat "user-" this.elementId}}>
|
<label class="control-label" for={{concat "user-" this.elementId}}>
|
||||||
{{html-safe this.field.name}}
|
{{this.field.name}}
|
||||||
{{#if this.field.required}}
|
{{#if this.field.required}}
|
||||||
<span class="required">*</span>
|
<span class="required">*</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<label class="control-label" for={{concat "user-" this.elementId}}>
|
<label class="control-label" for={{concat "user-" this.elementId}}>
|
||||||
{{html-safe this.field.name}}
|
{{this.field.name}}
|
||||||
{{#if this.field.required}}
|
{{#if this.field.required}}
|
||||||
<span class="required">*</span>
|
<span class="required">*</span>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<label class="control-label" for={{concat "user-" this.elementId}}>
|
<label class="control-label" for={{concat "user-" this.elementId}}>
|
||||||
{{html-safe this.field.name}}
|
{{this.field.name}}
|
||||||
{{#if this.field.required}}<span class="required">*</span>{{/if}}
|
{{#if this.field.required}}<span class="required">*</span>{{/if}}
|
||||||
</label>
|
</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
|
|
Loading…
Reference in New Issue