Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/jobs/components/log/line.vue')
-rw-r--r--app/assets/javascripts/jobs/components/log/line.vue32
1 files changed, 6 insertions, 26 deletions
diff --git a/app/assets/javascripts/jobs/components/log/line.vue b/app/assets/javascripts/jobs/components/log/line.vue
index 791664c05d9..e68d5b8eda4 100644
--- a/app/assets/javascripts/jobs/components/log/line.vue
+++ b/app/assets/javascripts/jobs/components/log/line.vue
@@ -1,24 +1,6 @@
<script>
-import linkifyHtml from 'linkifyjs/html';
-import { sanitize } from '~/lib/dompurify';
-import { isAbsolute } from '~/lib/utils/url_utility';
import LineNumber from './line_number.vue';
-const linkifyOptions = {
- attributes: {
- // eslint-disable-next-line @gitlab/require-i18n-strings
- rel: 'nofollow noopener',
- },
- className: 'gl-reset-color!',
- defaultProtocol: 'https',
- validate: {
- email: false,
- url(value) {
- return isAbsolute(value);
- },
- },
-};
-
export default {
functional: true,
props: {
@@ -35,15 +17,13 @@ export default {
const { line, path } = props;
const chars = line.content.map(content => {
- const linkfied = linkifyHtml(content.text, linkifyOptions);
- return h('span', {
- class: ['gl-white-space-pre-wrap', content.style],
- domProps: {
- innerHTML: sanitize(linkfied, {
- ALLOWED_TAGS: ['a'],
- }),
+ return h(
+ 'span',
+ {
+ class: ['gl-white-space-pre-wrap', content.style],
},
- });
+ content.text,
+ );
});
return h('div', { class: 'js-line log-line' }, [