Skip to content

Commit 59549bf

Browse files
committed
Change generated licence URLs to use HTTPS
1 parent 5359920 commit 59549bf

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/utils/licenses.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const LICENSES = {
1515
FULL: 'CC0 1.0 Universal',
1616
SHORT: 'CC0 1.0',
1717
SLUG: 'cc0',
18-
URL: 'http://creativecommons.org/publicdomain/zero/1.0',
18+
URL: 'https://creativecommons.org/publicdomain/zero/1.0',
1919
ICONS: ['cc', 'zero'],
2020
},
2121
CC_BY: {
@@ -28,7 +28,7 @@ export const LICENSES = {
2828
FULL: 'Creative Commons Attribution 4.0 International',
2929
SHORT: 'CC BY 4.0',
3030
SLUG: 'cc-by',
31-
URL: 'http://creativecommons.org/licenses/by/4.0/',
31+
URL: 'https://creativecommons.org/licenses/by/4.0/',
3232
ICONS: ['cc', 'by'],
3333
},
3434
CC_BY_SA: {
@@ -41,7 +41,7 @@ export const LICENSES = {
4141
FULL: 'Creative Commons Attribution-ShareAlike 4.0 International',
4242
SHORT: 'CC BY-SA 4.0',
4343
SLUG: 'cc-by-sa',
44-
URL: 'http://creativecommons.org/licenses/by-sa/4.0/',
44+
URL: 'https://creativecommons.org/licenses/by-sa/4.0/',
4545
ICONS: ['cc', 'by', 'sa'],
4646
},
4747
CC_BY_NC: {
@@ -54,7 +54,7 @@ export const LICENSES = {
5454
FULL: 'Creative Commons Attribution-NonCommercial 4.0 International',
5555
SHORT: 'CC BY-NC 4.0',
5656
SLUG: 'cc-by-nc',
57-
URL: 'http://creativecommons.org/licenses/by-nc/4.0/',
57+
URL: 'https://creativecommons.org/licenses/by-nc/4.0/',
5858
ICONS: ['cc', 'by', 'nc'],
5959
},
6060
CC_BY_NC_SA: {
@@ -67,7 +67,7 @@ export const LICENSES = {
6767
FULL: 'Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International',
6868
SHORT: 'CC BY-NC-SA 4.0',
6969
SLUG: 'cc-by-nc-sa',
70-
URL: 'http://creativecommons.org/licenses/by-nc-sa/4.0/',
70+
URL: 'https://creativecommons.org/licenses/by-nc-sa/4.0/',
7171
ICONS: ['cc', 'by', 'nc', 'sa'],
7272
},
7373
CC_BY_NC_ND: {
@@ -80,7 +80,7 @@ export const LICENSES = {
8080
FULL: 'Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International',
8181
SHORT: 'CC BY-NC-ND 4.0',
8282
SLUG: 'cc-by-nc-nd',
83-
URL: 'http://creativecommons.org/licenses/by-nc-nd/4.0/',
83+
URL: 'https://creativecommons.org/licenses/by-nc-nd/4.0/',
8484
ICONS: ['cc', 'by', 'nc', 'nd'],
8585
},
8686
CC_BY_ND: {
@@ -93,7 +93,7 @@ export const LICENSES = {
9393
FULL: 'Creative Commons Attribution-NoDerivatives 4.0 International',
9494
SHORT: 'CC BY-ND 4.0',
9595
SLUG: 'cc-by-nd',
96-
URL: 'http://creativecommons.org/licenses/by-nd/4.0/',
96+
URL: 'https://creativecommons.org/licenses/by-nd/4.0/',
9797
ICONS: ['cc', 'by', 'nd'],
9898
},
9999
};

tests/unit/specs/components/LicenseHTML.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('LicenseHTML.vue', () => {
4646

4747
const licenseLink = wrapper.find('a');
4848
expect(licenseLink.attributes().href).toBe(
49-
'http://creativecommons.org/licenses/by/4.0/?ref=chooser-v1',
49+
'https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1',
5050
);
5151
// License link should have the following attributes: href, target, rel and style
5252
expect(Object.keys(licenseLink.attributes()).length).toBe(4);
@@ -88,7 +88,7 @@ describe('LicenseHTML.vue', () => {
8888

8989
const licenseLink = wrapper.find('a[rel="license noopener noreferrer"]');
9090
expect(licenseLink.attributes().href).toBe(
91-
'http://creativecommons.org/licenses/by/4.0/?ref=chooser-v1',
91+
'https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1',
9292
);
9393
// License link should have the following attributes: href, target, rel and style
9494
expect(Object.keys(licenseLink.attributes()).length).toBe(4);

0 commit comments

Comments
 (0)