<version>5.5.0 Alpha 1</version>
<date>2022-02-15</date>
</packageinformation>
-
+
<authorinformation>
<author>WoltLab GmbH</author>
<authorurl>https://www.woltlab.com</authorurl>
</authorinformation>
-
+
<instructions type="install">
<instruction type="packageInstallationPlugin" />
<instruction type="acpMenu" />
<instruction type="userGroupOption" />
<instruction type="option" />
-
+
<instruction type="template" run="standalone" />
-
+
<instruction type="eventListener" />
<instruction type="script">acp/install.php</instruction>
<instruction type="cronjob" />
<instruction type="objectType" />
<instruction type="acpSearchProvider" />
<instruction type="style">defaultStyle.tar</instruction>
-
+
<instruction type="userOption" run="standalone" />
-
+
<instruction type="bbcode" />
<instruction type="smiley" />
<instruction type="userProfileMenu" />
<instruction type="box" />
<instruction type="mediaProvider" />
<instruction type="templateListener" />
-
+
<instruction type="script">acp/post_install.php</instruction>
</instructions>
<instruction type="fileDelete" />
<instruction type="templateDelete" />
<instruction type="script" run="standalone">acp/update_com.woltlab.wcf_5.5_clearPackageDeprecations.php</instruction>
+ <instruction type="script" run="standalone">acp/update_com.woltlab.wcf_5.5_cleanupPackageExclusion.php</instruction>
<!-- Misc. Update Scripts. -->
<instruction type="script" run="standalone">acp/update_com.woltlab.wcf_5.5_randomize_cronjobs.php</instruction>
--- /dev/null
+<?php
+
+/**
+ * Since version 5.5 the excluded package version must be explicit set. If not, the installation of the plugin in denied.
+ * For this reason, the (unused) format is rewritten from empty to `*`.
+ *
+ * see https://github.com/WoltLab/WCF/pull/4492
+ *
+ * @author Joshua Ruesweg
+ * @copyright 2001-2022 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core
+ */
+
+use wcf\system\WCF;
+
+$sql = "UPDATE wcf1_package_exclusion
+ SET excludedPackageVersion = ?
+ WHERE excludedPackageVersion = ?";
+$statement = WCF::getDB()->prepare($sql);
+$statement->execute([
+ '*',
+ '',
+]);