Skip to content

Commit 5f59eb3

Browse files
fix(ui): escape organization/title properties
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent badda52 commit 5f59eb3

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

package-lock.json

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"debounce": "^1.2.1",
6161
"downloadjs": "^1.4.7",
6262
"ical.js": "^1.5.0",
63+
"lodash": "^4.17.21",
6364
"moment": "^2.29.4",
6465
"p-limit": "^4.0.0",
6566
"qr-image": "^3.2.0",

src/components/ContactDetails.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@
369369
</template>
370370

371371
<script>
372+
import escape from 'lodash/fp/escape.js'
372373
import { showError } from '@nextcloud/dialogs'
373374
374375
import { stringify } from 'ical.js'
@@ -717,9 +718,9 @@ export default {
717718
organization,
718719
})
719720
} else if (title) {
720-
return title
721+
return escape(title)
721722
} else if (organization) {
722-
return organization
723+
return escape(organization)
723724
}
724725
725726
return ''

0 commit comments

Comments
 (0)