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
14c07dd9
Commit
14c07dd9
authored
Sep 20, 2021
by
Fall1ngStar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use v-safe-html in project_list_item.vue
Changelog: security
parent
0f316f43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/assets/javascripts/vue_shared/components/project_selector/project_list_item.vue
..._shared/components/project_selector/project_list_item.vue
+3
-2
No files found.
app/assets/javascripts/vue_shared/components/project_selector/project_list_item.vue
View file @
14c07dd9
<
script
>
import
{
GlButton
,
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlButton
,
GlIcon
,
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
{
isString
}
from
'
lodash
'
;
import
highlight
from
'
~/lib/utils/highlight
'
;
import
{
truncateNamespace
}
from
'
~/lib/utils/text_utility
'
;
...
...
@@ -8,6 +8,7 @@ import ProjectAvatar from '~/vue_shared/components/deprecated_project_avatar/def
export
default
{
name
:
'
ProjectListItem
'
,
components
:
{
GlIcon
,
ProjectAvatar
,
GlButton
},
directives
:
{
SafeHtml
},
props
:
{
project
:
{
type
:
Object
,
...
...
@@ -58,9 +59,9 @@ export default {
<span
v-if=
"truncatedNamespace"
class=
"text-secondary"
>
/
</span>
</div>
<div
v-safe-html=
"highlightedProjectName"
:title=
"project.name"
class=
"js-project-name text-truncate"
v-html=
"highlightedProjectName /* eslint-disable-line vue/no-v-html */"
></div>
</div>
</gl-button>
...
...
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