Skip to content

Commit a6b168d

Browse files
committed
fix: xss vulnerabilities
1 parent f600974 commit a6b168d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/vfg-core.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vfg.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/formGenerator.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ div.vue-form-generator(v-if='schema != null')
88
fieldset(v-if='isVisible(group)', :is='tag', :class='getFieldRowClasses(group)')
99
legend(v-if='group.legend') {{ group.legend }}
1010
div(v-if='group.hint', class="hint") {{ group.hint }}
11-
div(v-if='group.notice', class="notices help-block") <i class="mdi mdi-information"></i><span v-html="group.notice"></span> {{ group.notice }}
12-
div(v-if='group.warning', class="warnings help-block") <i class="mdi mdi-alert"></i><span v-html="group.warning"></span> {{ group.warning }}
11+
div(v-if='group.notice', class="notices help-block") <i class="mdi mdi-information"></i> {{ group.notice }}
12+
div(v-if='group.warning', class="warnings help-block") <i class="mdi mdi-alert"></i> {{ group.warning }}
1313
ul(v-if='group.errors', class="errors help-block")
1414
li(v-for='error in group.errors') {{ error }}
1515
template(v-for='field in group.fields')

src/formGroup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
</div>
1717

1818
<div v-if="field.warning" class="warnings help-block">
19-
<i class="mdi mdi-alert"></i><span v-html="fieldWarning(field)"></span>
19+
<i class="mdi mdi-alert"></i>{{ fieldWarning(field) }}
2020
</div>
2121

2222
<div v-if="field.notice" class="notices help-block">
23-
<i class="mdi mdi-information"></i><span v-html="fieldNotice(field)"></span>
23+
<i class="mdi mdi-information"></i> {{ fieldNotice(field) }}
2424
</div>
2525

2626
<div v-if="fieldErrors(field).length > 0" class="errors help-block">

0 commit comments

Comments
 (0)