Fix findings of the full security and bug scan
CMS quality / php (8.2) (push) Waiting to run
CMS quality / php (8.4) (push) Waiting to run
CMS quality / browser (push) Waiting to run
CMS quality / mysql (push) Waiting to run

- Update Symfony to 7.4.24/25 and Twig to 3.31.1 (19 advisories), npm ws
- Forms: honeypot no longer named "website" (a field labelled Website
  silently dropped every submission), reserve technical field names,
  keep single-line fields on one line
- Installer: English installations stored pages under "en" and served 404
- Schedules from before ADR 116 no longer publish the latest draft
- Moving a page: refuse reserved addresses, claim the version atomically
- Content packages: check close(), require all media, verify extracted
  bytes, clean up on failure, clear the media mirror after import
- Updater: failed copies in public/ and plugins/ abort and roll back public/
- Restore: missing media fail the restore; cms:restore keeps maintenance on
- Editor preview honours the page's header and footer choice

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kantarciandClaude Opus 5.5 committed 2026-12-03 20:03:43 +01:00
1 parent 4a33090905
commit 33dc413ef6
22 files changed
+659 -246

No files matched your search

+14
View File
@@ -207,6 +207,20 @@ final class InstallationTest extends TestCase
yield 'Tippfehler bei der Wiederholung' => ['chefin', 'ein sehr langes passwort', 'ein sehr langes passwortt'];
}
public function testAnEnglishInstallationServesItsPages(): void
{
// Englisch stand im Installer zur Wahl, und danach antwortete jede Seite mit 404: die
// Seiten lagen unter „en“, gelesen wird die Hauptsprache unter „de“ (ADR 111).
$this->installation->migrate();
$this->installation->createSite('Example Ltd', 'https://example.com', 'en');
$pages = new PageRepository($this->db, new DocumentValidator(), new SiteSettings($this->db, new MediaLibrary($this->db, $this->root.'/var/media')));
self::assertNotNull($pages->findPublished('home'), 'Die Startseite einer englischen Installation fehlt.');
self::assertNotNull($pages->findPublished('impressum'));
self::assertSame('en', $this->db->fetchOne('SELECT default_locale FROM website'));
self::assertSame(['de'], $this->db->fetchFirstColumn('SELECT DISTINCT locale FROM page'));
}
#[DataProvider('badSites')]
public function testAWebsiteWithBadInputIsRefused(string $name, string $origin, string $locale): void
{