Use $installedVersion instead of $currentVersion

Additionally use 6.00.4 as the internal version has been changed
This commit is contained in:
Lukas Reschke 2014-03-06 22:43:08 +01:00
parent c358373dfa
commit ce5f8d72a4

View file

@ -106,7 +106,7 @@ class Updater extends BasicEmitter {
/*
* START CONFIG CHANGES FOR OLDER VERSIONS
*/
if (version_compare($currentVersion, '6.00.1', '<')) {
if (version_compare($installedVersion, '6.00.4', '<')) {
// 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())));