Merge pull request #38929 from nextcloud/backport/38915/stable27

[stable27] adjust admin setup check to increase warning to configure https
This commit is contained in:
Simon L 2023-06-21 16:57:25 +02:00 committed by GitHub
commit 41f5631b2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -741,10 +741,10 @@
}
} else if (!/(?:^(?:localhost|127\.0\.0\.1|::1)|\.onion)$/.exec(window.location.hostname)) {
messages.push({
msg: t('core', 'Accessing site insecurely via HTTP. You are strongly advised to set up your server to require HTTPS instead, as described in the {linkstart}security tips ↗{linkend}.')
msg: t('core', 'Accessing site insecurely via HTTP. You are strongly advised to set up your server to require HTTPS instead, as described in the {linkstart}security tips ↗{linkend}. Without it some important web functionality like "copy to clipboard" or "service workers" will not work!')
.replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="' + tipsUrl + '">')
.replace('{linkend}', '</a>'),
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
type: OC.SetupChecks.MESSAGE_TYPE_ERROR
});
}
} else {