diff --git a/CHANGELOG.md b/CHANGELOG.md index fae6502e95..dcd3635573 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,11 @@ This is a log of major user-visible changes in each phpMyFAQ release. - removed Webpack, now using Vite v6 (Thorsten) - migrated from Jest to vitest (Thorsten) +### phpMyFAQ v4.0.1 - unreleased + +- improved update handling of .htaccess file (Thorsten) +- updated 3rd party dependencies (Thorsten) + ### phpMyFAQ v4.0.0 - 2024-12-06 - changed PHP requirement to PHP 8.2 or later (Thorsten) diff --git a/phpmyfaq/admin/category.main.php b/phpmyfaq/admin/category.main.php index 5ce8bdbefd..5640a7f348 100644 --- a/phpmyfaq/admin/category.main.php +++ b/phpmyfaq/admin/category.main.php @@ -46,7 +46,7 @@ // Image upload // $request = Request::createFromGlobals(); -$uploadedFile = $request->files->get('image'); +$uploadedFile = $request->files->get('image') ?? []; $categoryImage = new Image($faqConfig); $categoryImage->setUploadedFile($uploadedFile); @@ -77,9 +77,9 @@ ->setName(Filter::filterInput(INPUT_POST, 'name', FILTER_SANITIZE_SPECIAL_CHARS)) ->setDescription(Filter::filterInput(INPUT_POST, 'description', FILTER_SANITIZE_SPECIAL_CHARS)) ->setUserId(Filter::filterInput(INPUT_POST, 'user_id', FILTER_VALIDATE_INT)) - ->setGroupId(Filter::filterInput(INPUT_POST, 'group_id', FILTER_VALIDATE_INT)) + ->setGroupId(Filter::filterInput(INPUT_POST, 'group_id', FILTER_VALIDATE_INT) ?? -1) ->setActive(Filter::filterInput(INPUT_POST, 'active', FILTER_VALIDATE_INT) ?? false) - ->setImage($categoryImage->getFileName($categoryId, $categoryLang)) + ->setImage($categoryImage->getFileName($categoryId, $categoryLang) ?? '') ->setParentId($parentId) ->setShowHome(Filter::filterInput(INPUT_POST, 'show_home', FILTER_VALIDATE_INT)); diff --git a/phpmyfaq/src/phpMyFAQ/Setup/EnvironmentConfigurator.php b/phpmyfaq/src/phpMyFAQ/Setup/EnvironmentConfigurator.php index 7c12c01aa4..cbe03f21f6 100644 --- a/phpmyfaq/src/phpMyFAQ/Setup/EnvironmentConfigurator.php +++ b/phpmyfaq/src/phpMyFAQ/Setup/EnvironmentConfigurator.php @@ -1,5 +1,20 @@ + * @copyright 2024 phpMyFAQ Team + * @license https://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0 + * @link https://www.phpmyfaq.de + * @since 2024-11-16 + */ + namespace phpMyFAQ\Setup; use phpMyFAQ\Configuration; diff --git a/phpmyfaq/src/phpMyFAQ/System.php b/phpmyfaq/src/phpMyFAQ/System.php index 21a376b690..614167d4b4 100644 --- a/phpmyfaq/src/phpMyFAQ/System.php +++ b/phpmyfaq/src/phpMyFAQ/System.php @@ -47,7 +47,7 @@ class System /** * Patch level. */ - private const VERSION_PATCH_LEVEL = 0; + private const VERSION_PATCH_LEVEL = 1; /** * Pre-release version.