Use $installedVersion instead of $currentVersion

This commit is contained in:
Lukas Reschke 2014-03-06 22:40:25 +01:00 committed by Vincent Petry
parent df7853363a
commit 239069c838
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class Updater extends BasicEmitter {
/* /*
* START CONFIG CHANGES FOR OLDER VERSIONS * 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 // Add the overwriteHost config if it is not existant
// This is added to prevent host header poisoning // This is added to prevent host header poisoning
\OC_Config::setValue('trusted_domains', \OC_Config::getValue('trusted_domains', array(\OC_Request::serverHost()))); \OC_Config::setValue('trusted_domains', \OC_Config::getValue('trusted_domains', array(\OC_Request::serverHost())));