diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-09-27 13:31:58 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-09-27 15:39:26 +0200 |
commit | fe306531947814bc0f57cfe5a4a3ffd74f24ebae (patch) | |
tree | 13bdd6ac7631707aac94961d5074e1da71052f5b /settings | |
parent | c759a78926b8555aa03262478a57eab9371303b0 (diff) | |
download | nextcloud-server-fe306531947814bc0f57cfe5a4a3ffd74f24ebae.tar.gz nextcloud-server-fe306531947814bc0f57cfe5a4a3ffd74f24ebae.zip |
Fix "checkWellKnownUrl" not being run
The check is run only if its last parameter is true; data() tries to
convert the HTML attribute string to an actual JavaScript value, so
"true" is returned as an actual boolean instead of an string; as a
strict comparison against "true" was used the result was false and thus
the checks were not run.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/admin.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js index 61c40e789ba..6ac569f2a37 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -248,8 +248,8 @@ $(document).ready(function(){ // run setup checks then gather error messages $.when( OC.SetupChecks.checkWebDAV(), - OC.SetupChecks.checkWellKnownUrl('/.well-known/caldav/', oc_defaults.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === 'true'), - OC.SetupChecks.checkWellKnownUrl('/.well-known/carddav/', oc_defaults.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === 'true'), + OC.SetupChecks.checkWellKnownUrl('/.well-known/caldav/', oc_defaults.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === true), + OC.SetupChecks.checkWellKnownUrl('/.well-known/carddav/', oc_defaults.docPlaceholderUrl, $('#postsetupchecks').data('check-wellknown') === true), OC.SetupChecks.checkSetup(), OC.SetupChecks.checkGeneric(), OC.SetupChecks.checkDataProtected() |