Browse Source

Merge pull request #7611 from owncloud/fix-updater

Use $installedVersion instead of $currentVersion
tags/v7.0.0alpha2
Vincent Petry 10 years ago
parent
commit
a52bc333a2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/updater.php

+ 1
- 1
lib/private/updater.php View File

@@ -110,7 +110,7 @@ class Updater extends BasicEmitter {
/*
* START CONFIG CHANGES FOR OLDER VERSIONS
*/
if (!\OC::$CLI && version_compare($currentVersion, '6.90.1', '<')) {
if (!\OC::$CLI && version_compare($installedVersion, '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())));

Loading…
Cancel
Save