mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 16:38:37 +00:00
Merge pull request '[v7.0/forgejo] replace v-html with v-text in branch search inputbox for XSS protection' (#5246) from bp-v7.0/forgejo-bb8796b into v7.0/forgejo
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5246 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
commit
7644435aed
|
@ -289,13 +289,11 @@ export default sfc; // activate IDE's Vue plugin
|
||||||
<a href="#" @click="createNewBranch()">
|
<a href="#" @click="createNewBranch()">
|
||||||
<div v-show="shouldCreateTag">
|
<div v-show="shouldCreateTag">
|
||||||
<i class="reference tags icon"/>
|
<i class="reference tags icon"/>
|
||||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
<span v-text="textCreateTag.replace('%s', searchTerm)"/>
|
||||||
<span v-html="textCreateTag.replace('%s', searchTerm)"/>
|
|
||||||
</div>
|
</div>
|
||||||
<div v-show="!shouldCreateTag">
|
<div v-show="!shouldCreateTag">
|
||||||
<svg-icon name="octicon-git-branch"/>
|
<svg-icon name="octicon-git-branch"/>
|
||||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
<span v-text="textCreateBranch.replace('%s', searchTerm)"/>
|
||||||
<span v-html="textCreateBranch.replace('%s', searchTerm)"/>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="text small">
|
<div class="text small">
|
||||||
<span v-if="isViewBranch || release">{{ textCreateBranchFrom.replace('%s', branchName) }}</span>
|
<span v-if="isViewBranch || release">{{ textCreateBranchFrom.replace('%s', branchName) }}</span>
|
||||||
|
|
Loading…
Reference in a new issue