diff options
author | Guillaume Virlet <github@virlet.org> | 2021-04-23 22:19:08 +0200 |
---|---|---|
committer | Guillaume Virlet <github@virlet.org> | 2021-04-23 22:23:23 +0200 |
commit | ec38cf3b536576b790d964ac8824f1258dc3c3f7 (patch) | |
tree | 7bd7686a3bed5a52c9bd64a723b199e327ada701 /core/js/setupchecks.js | |
parent | 8fc8451004b8b45de05c017b61aea5890c854685 (diff) | |
download | nextcloud-server-ec38cf3b536576b790d964ac8824f1258dc3c3f7.tar.gz nextcloud-server-ec38cf3b536576b790d964ac8824f1258dc3c3f7.zip |
[Fix #26726] wrong warning when running HTTP instance
Signed-off-by: Guillaume Virlet <github@virlet.org>
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r-- | core/js/setupchecks.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 82d8b649af1..fc25f499020 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -487,7 +487,7 @@ type: OC.SetupChecks.MESSAGE_TYPE_WARNING }) } - if (window.location.protocol === 'http:' && data.reverseProxyGeneratedURL.split('/')[0] !== 'https:') { + if (window.location.protocol === 'https:' && data.reverseProxyGeneratedURL.split('/')[0] !== 'https:') { messages.push({ msg: t('core', 'You are accessing your instance over a secure connection, however your instance is generating insecure URLs. This most likely means that you are behind a reverse proxy and the overwrite config variables are not set correctly. Please read {linkstart}the documentation page about this ↗{linkend}.') .replace('{linkstart}', '<a target="_blank" rel="noreferrer noopener" class="external" href="' + data.reverseProxyDocs + '">') |