Skip to content

Commit a867c0b

Browse files
committed
Reconcile sanitize/purify, format.
1 parent 16eaaaf commit a867c0b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

client/src/components/Libraries/LibraryEditField.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default {
6666
};
6767
},
6868
methods: {
69-
sanitize,
69+
purify,
7070
updateValue(value) {
7171
this.$emit("update:changedValue", value);
7272
},

client/src/components/Libraries/LibraryFolder/LibraryFolder.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@
128128
<span
129129
class="shrinked-description"
130130
:title="getMessage(row.item)"
131-
v-html="linkify(purify.sanitize(getMessage(row.item).substring(0, maxDescriptionLength)))">
131+
v-html="
132+
linkify(purify.sanitize(getMessage(row.item).substring(0, maxDescriptionLength)))
133+
">
132134
</span>
133135
<!-- eslint-enable vue/no-v-html -->
134136
<span :title="getMessage(row.item)"> ...</span>
@@ -367,7 +369,7 @@ export default {
367369
this.getFolder(this.folder_id, this.page);
368370
},
369371
methods: {
370-
sanitize,
372+
purify,
371373
getFolder(folder_id, page) {
372374
this.currentFolderId = folder_id;
373375
this.currentPage = page;

0 commit comments

Comments
 (0)