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
3bac7a21
Commit
3bac7a21
authored
Oct 06, 2021
by
Rishabh Gupta
Committed by
Natalia Tepluhina
Oct 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove v-html from repository preview
parent
f049b19c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
app/assets/javascripts/repository/components/preview/index.vue
...ssets/javascripts/repository/components/preview/index.vue
+5
-6
No files found.
app/assets/javascripts/repository/components/preview/index.vue
View file @
3bac7a21
<
script
>
import
{
GlIcon
,
GlLink
,
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
{
GlIcon
,
GlLink
,
GlLoadingIcon
,
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
$
from
'
jquery
'
;
import
'
~/behaviors/markdown/render_gfm
'
;
import
{
handleLocationHash
}
from
'
~/lib/utils/common_utils
'
;
...
...
@@ -22,6 +22,9 @@ export default {
GlLink
,
GlLoadingIcon
,
},
directives
:
{
SafeHtml
,
},
props
:
{
blob
:
{
type
:
Object
,
...
...
@@ -59,11 +62,7 @@ export default {
</div>
<div
class=
"blob-viewer"
data-qa-selector=
"blob_viewer_content"
itemprop=
"about"
>
<gl-loading-icon
v-if=
"loading > 0"
size=
"md"
color=
"dark"
class=
"my-4 mx-auto"
/>
<div
v-else-if=
"readme"
ref=
"readme"
v-html=
"readme.html /* eslint-disable-line vue/no-v-html */"
></div>
<div
v-else-if=
"readme"
ref=
"readme"
v-safe-html=
"readme.html"
></div>
</div>
</article>
</
template
>
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