diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-03-14 10:48:07 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-03-14 11:16:45 +0100 |
commit | 1a116828cf00b434c5d3f5a3948393a714899df9 (patch) | |
tree | d5820b2fd59493ac53fc6a87986864debb430669 /lib | |
parent | b92be2ef1cb59f251a6d48953f4cb8d5e0eb734f (diff) | |
download | nextcloud-server-1a116828cf00b434c5d3f5a3948393a714899df9.tar.gz nextcloud-server-1a116828cf00b434c5d3f5a3948393a714899df9.zip |
Added warning for trusted_domains after CLI upgrade
If trusted_domains is not set after a CLI upgrade, show a warning in the
output.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/updater.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/updater.php b/lib/private/updater.php index fd2d46a1fac..dd8dc84e804 100644 --- a/lib/private/updater.php +++ b/lib/private/updater.php @@ -108,7 +108,7 @@ class Updater extends BasicEmitter { /* * START CONFIG CHANGES FOR OLDER VERSIONS */ - if (version_compare($currentVersion, '6.90.1', '<')) { + if (!\OC::$CLI && version_compare($currentVersion, '6.90.1', '<')) { // Add the overwriteHost config if it is not existant // This is added to prevent host header poisoning \OC_Config::setValue('trusted_domains', \OC_Config::getValue('trusted_domains', array(\OC_Request::serverHost()))); |