diff --git a/package-lock.json b/package-lock.json index d2e9b9ca32..4eadaf6983 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "": { "name": "schulcloud-nuxt", "dependencies": { - "@braintree/sanitize-url": "^6.0.4", + "@braintree/sanitize-url": "^7.1.1", "@ckeditor/ckeditor5-vue": "^5.1.0", "@hpi-schul-cloud/ckeditor": "^1.2.0", "@lumieducation/h5p-webcomponents": "^9.2.2", @@ -1724,7 +1724,9 @@ "license": "MIT" }, "node_modules/@braintree/sanitize-url": { - "version": "6.0.4", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.1.tgz", + "integrity": "sha512-i1L7noDNxtFyL5DmZafWy1wRVhGehQmzZaz1HiN5e7iylJMSZR7ekOV7NsIqa5qBldlLrsKv4HbgFUVlQrz8Mw==", "license": "MIT" }, "node_modules/@ckeditor/ckeditor5-vue": { diff --git a/package.json b/package.json index f7ed43659f..6f542d1b4f 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "generate-client:common-cartridge": "openapi-generator-cli generate -c ./openapitools.json --generator-key common-cartridge-api" }, "dependencies": { - "@braintree/sanitize-url": "^6.0.4", + "@braintree/sanitize-url": "^7.1.1", "@ckeditor/ckeditor5-vue": "^5.1.0", "@hpi-schul-cloud/ckeditor": "^1.2.0", "@lumieducation/h5p-webcomponents": "^9.2.2", diff --git a/src/components/administration/AdminMigrationSection.vue b/src/components/administration/AdminMigrationSection.vue index aa40526af7..39454bd29e 100644 --- a/src/components/administration/AdminMigrationSection.vue +++ b/src/components/administration/AdminMigrationSection.vue @@ -401,12 +401,11 @@ export default defineComponent({ return subject; }; - const supportLink: ComputedRef = computed(() => - sanitizeUrl( + const supportLink: ComputedRef = computed( + () => `mailto:${ envConfigModule.getAccessibilityReportEmail }?subject=${getSubject()}` - ) ); const globalFeatureEnableLdapSyncDuringMigration: ComputedRef = diff --git a/src/modules/feature/board-link-element/components/LinkContentElement.unit.ts b/src/modules/feature/board-link-element/components/LinkContentElement.unit.ts index c2b681bda6..9b0f884a62 100644 --- a/src/modules/feature/board-link-element/components/LinkContentElement.unit.ts +++ b/src/modules/feature/board-link-element/components/LinkContentElement.unit.ts @@ -61,6 +61,12 @@ describe("LinkContentElement", () => { ReturnType >; + beforeAll(() => { + Object.defineProperty(URL, "canParse", { + value: jest.fn().mockReturnValue(true), + }); + }); + beforeEach(() => { useBoardFocusHandlerMock = createMock>();