Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7dda368f
Commit
7dda368f
authored
Sep 20, 2021
by
Eugie Limpin
Committed by
Enrique Alcántara
Sep 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in repository file table rows
parent
9b909ef6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
app/assets/javascripts/repository/components/table/row.vue
app/assets/javascripts/repository/components/table/row.vue
+4
-1
No files found.
app/assets/javascripts/repository/components/table/row.vue
View file @
7dda368f
...
...
@@ -7,6 +7,7 @@ import {
GlLoadingIcon
,
GlIcon
,
GlHoverLoadDirective
,
GlSafeHtmlDirective
,
}
from
'
@gitlab/ui
'
;
import
{
escapeRegExp
}
from
'
lodash
'
;
import
filesQuery
from
'
shared_queries/repository/files.query.graphql
'
;
...
...
@@ -33,6 +34,7 @@ export default {
directives
:
{
GlTooltip
:
GlTooltipDirective
,
GlHoverLoad
:
GlHoverLoadDirective
,
SafeHtml
:
GlSafeHtmlDirective
,
},
apollo
:
{
commit
:
{
...
...
@@ -178,6 +180,7 @@ export default {
this
.
$apollo
.
query
({
query
,
variables
});
},
},
safeHtmlConfig
:
{
ADD_TAGS
:
[
'
gl-emoji
'
]
},
};
</
script
>
...
...
@@ -228,10 +231,10 @@ export default {
<td
class=
"d-none d-sm-table-cell tree-commit cursor-default"
>
<gl-link
v-if=
"commit"
v-safe-html:
[$
options.safeHtmlConfig]=
"commit.titleHtml"
:href=
"commit.commitPath"
:title=
"commit.message"
class=
"str-truncated-100 tree-commit-link"
v-html=
"commit.titleHtml /* eslint-disable-line vue/no-v-html */"
/>
<gl-skeleton-loading
v-else
:lines=
"1"
class=
"h-auto"
/>
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment