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
838ad1d5
Commit
838ad1d5
authored
Sep 03, 2020
by
Kev
Committed by
Rémy Coutable
Sep 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in history_comment.vue
parent
ff28d00a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
ee/app/assets/javascripts/vulnerabilities/components/history_comment.vue
...avascripts/vulnerabilities/components/history_comment.vue
+6
-3
No files found.
ee/app/assets/javascripts/vulnerabilities/components/history_comment.vue
View file @
838ad1d5
<
script
>
<
script
>
/* eslint-disable vue/no-v-html */
import
{
GlDeprecatedButton
,
GlButton
,
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
{
GlDeprecatedButton
,
GlButton
}
from
'
@gitlab/ui
'
;
import
EventItem
from
'
ee/vue_shared/security_reports/components/event_item.vue
'
;
import
EventItem
from
'
ee/vue_shared/security_reports/components/event_item.vue
'
;
import
{
deprecatedCreateFlash
as
createFlash
}
from
'
~/flash
'
;
import
{
deprecatedCreateFlash
as
createFlash
}
from
'
~/flash
'
;
import
{
__
,
s__
}
from
'
~/locale
'
;
import
{
__
,
s__
}
from
'
~/locale
'
;
...
@@ -15,6 +14,10 @@ export default {
...
@@ -15,6 +14,10 @@ export default {
HistoryCommentEditor
,
HistoryCommentEditor
,
},
},
directives
:
{
SafeHtml
,
},
props
:
{
props
:
{
comment
:
{
comment
:
{
type
:
Object
,
type
:
Object
,
...
@@ -154,7 +157,7 @@ export default {
...
@@ -154,7 +157,7 @@ export default {
icon-class=
"timeline-icon m-0"
icon-class=
"timeline-icon m-0"
class=
"m-3"
class=
"m-3"
>
>
<div
class=
"md"
v-html=
"comment.note_html
"
></div>
<div
v-safe-html=
"comment.note_html"
class=
"md
"
></div>
<template
#right-content
>
<template
#right-content
>
<gl-button
<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