forked from github/dataease
Merge pull request #5661 from dataease/pr@dev@fixdatasource
fix: 修复存储型XSS漏洞
This commit is contained in:
commit
ffa336f3aa
@ -10,7 +10,7 @@
|
||||
<div
|
||||
class="remark-style"
|
||||
:style="{backgroundColor:remarkCfg.bgFill}"
|
||||
v-html="remarkCfg.content"
|
||||
v-html="$xss(remarkCfg.content)"
|
||||
/>
|
||||
<i
|
||||
slot="reference"
|
||||
|
@ -34,7 +34,7 @@
|
||||
<span>
|
||||
<span
|
||||
style="margin-left: 6px"
|
||||
v-html="data.name"
|
||||
v-html="$xss(data.name)"
|
||||
/>
|
||||
</span>
|
||||
<span
|
||||
|
@ -34,7 +34,7 @@
|
||||
text-overflow: ellipsis;
|
||||
"
|
||||
:title="data.name"
|
||||
v-html="highlights(data.name)"
|
||||
v-html="$xss(highlights(data.name))"
|
||||
/>
|
||||
</span>
|
||||
</span>
|
||||
|
@ -202,7 +202,7 @@
|
||||
<div
|
||||
v-if="showFoot"
|
||||
class="dynamic-login-foot"
|
||||
v-html="footContent"
|
||||
v-html="$xss(footContent)"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<div
|
||||
class="export_body_inner_class"
|
||||
:style="templateHtmlStyle"
|
||||
v-html="templateContentChange"
|
||||
v-html="$xss(templateContentChange)"
|
||||
/>
|
||||
</div>
|
||||
</el-row>
|
||||
|
@ -202,7 +202,7 @@
|
||||
<!-- // {{}}会将数据解释为普通文本,而非 HTML 代码。 -->
|
||||
<div
|
||||
slot="content"
|
||||
v-html="filterRoles(scope.row.roles)"
|
||||
v-html="$xss(filterRoles(scope.row.roles))"
|
||||
/>
|
||||
<div class="de-one-line">{{ filterRoles(scope.row.roles) }}</div>
|
||||
</el-tooltip>
|
||||
|
@ -9,7 +9,7 @@
|
||||
{{ details.head }}
|
||||
</el-row>
|
||||
<el-row class="card_content">
|
||||
<span v-html="details.content" />
|
||||
<span v-html="$xss(details.content)" />
|
||||
</el-row>
|
||||
<el-row class="card_bottom">
|
||||
{{ $t('wizard.click_show') }}
|
||||
|
@ -9,7 +9,7 @@
|
||||
{{ details.head }}
|
||||
</el-row>
|
||||
<el-row class="card_content">
|
||||
<span v-html="details.content" />
|
||||
<span v-html="$xss(details.content)" />
|
||||
</el-row>
|
||||
<el-row class="card_bottom">
|
||||
{{ $t('wizard.apply') }}
|
||||
|
@ -18,7 +18,7 @@
|
||||
<span>{{ details.head }}</span>
|
||||
</el-row>
|
||||
<el-row class="content">
|
||||
<span v-html="details.content" />
|
||||
<span v-html="$xss(details.content)" />
|
||||
</el-row>
|
||||
<el-row class="bottom">
|
||||
<span class="span-box">{{ details.bottom }}</span>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<span>{{ details.head }}</span>
|
||||
</el-row>
|
||||
<el-row class="content">
|
||||
<span v-html="details.content" />
|
||||
<span v-html="$xss(details.content)" />
|
||||
</el-row>
|
||||
<el-row class="bottom">
|
||||
<span class="span-box">{{ details.bottom }}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user