[TASK] unserialize() without objects for extConf
[Packages/TYPO3.CMS.git] / typo3 / sysext / install / Classes / Service / SilentConfigurationUpgradeService.php
index 5ac4ac8..03d8f6e 100755 (executable)
@@ -98,7 +98,6 @@ class SilentConfigurationUpgradeService
     {
         $this->generateEncryptionKeyIfNeeded();
         $this->configureBackendLoginSecurity();
-        $this->configureSaltedPasswords();
         $this->migrateImageProcessorSetting();
         $this->transferHttpSettings();
         $this->disableImageMagickDetailSettingsIfImageMagickIsDisabled();
@@ -155,43 +154,6 @@ class SilentConfigurationUpgradeService
     }
 
     /**
-     * Check the settings for salted passwords extension to load it as a required extension.
-     * Unset obsolete configuration options if given.
-     *
-     * @return void
-     */
-    protected function configureSaltedPasswords()
-    {
-        $defaultConfiguration = $this->configurationManager->getDefaultConfiguration();
-        $defaultExtensionConfiguration = unserialize($defaultConfiguration['EXT']['extConf']['saltedpasswords']);
-        try {
-            $extensionConfiguration = @unserialize($this->configurationManager->getLocalConfigurationValueByPath('EXT/extConf/saltedpasswords'));
-        } catch (\RuntimeException $e) {
-            $extensionConfiguration = [];
-        }
-        if (is_array($extensionConfiguration) && !empty($extensionConfiguration)) {
-            if (isset($extensionConfiguration['BE.']['enabled'])) {
-                if ($extensionConfiguration['BE.']['enabled']) {
-                    unset($extensionConfiguration['BE.']['enabled']);
-                } else {
-                    $extensionConfiguration['BE.'] = $defaultExtensionConfiguration['BE.'];
-                }
-                $this->configurationManager->setLocalConfigurationValueByPath(
-                    'EXT/extConf/saltedpasswords',
-                    serialize($extensionConfiguration)
-                );
-                $this->throwRedirectException();
-            }
-        } else {
-            $this->configurationManager->setLocalConfigurationValueByPath(
-                'EXT/extConf/saltedpasswords',
-                serialize($defaultExtensionConfiguration)
-            );
-            $this->throwRedirectException();
-        }
-    }
-
-    /**
      * The encryption key is crucial for securing form tokens
      * and the whole TYPO3 link rendering later on. A random key is set here in
      * LocalConfiguration if it does not exist yet. This might possible happen