Skip to content
Snippets Groups Projects
Commit a52bc333 authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #7611 from owncloud/fix-updater

Use $installedVersion instead of $currentVersion
parents 3f95f932 239069c8
Branches
No related tags found
No related merge requests found
......@@ -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())));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment