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

+20
View File
@@ -156,6 +156,26 @@ final class ArchiveUpdateTest extends TestCase
self::assertFileDoesNotExist($this->root.'/'.Updater::MAINTENANCE_FILE, 'Die Website darf davon nichts merken.');
}
public function testAFileInPublicThatCannotBeReplacedSwitchesEverythingBack(): void
{
// public/index.php lässt sich nicht überschreiben (hier: ein Ordner an ihrer Stelle; live
// fehlende Schreibrechte oder volle Platte). Vorher meldete das Update trotzdem Erfolg und
// ließ neuen Code mit altem public/ stehen; ein Fehler danach brachte public/ nicht zurück.
unlink($this->root.'/public/index.php');
mkdir($this->root.'/public/index.php');
$this->releases->release(self::BASE, self::API, '1.1.0', $this->archive('1.1.0'));
$ergebnis = $this->updater()->run();
self::assertFalse($ergebnis['ok']);
self::assertSame('Dateien ersetzen', $this->firstFailed($ergebnis)['step'], $this->explain($ergebnis));
self::assertSame('1.0.0', trim((string) file_get_contents($this->root.'/VERSION')));
self::assertFileExists($this->root.'/src/Alt.php');
self::assertSame('body{color:alt}', file_get_contents($this->root.'/public/assets/site.css'), 'Schon ersetzte Dateien in public/ kommen zurück.');
self::assertNull($this->updater()->pending());
self::assertFileDoesNotExist($this->root.'/'.Updater::MAINTENANCE_FILE);
}
public function testAnIncompleteArchiveIsRefusedBeforeTheSiteGoesIntoMaintenance(): void
{
// Ein Archiv ohne vendor/ ist auf einem Hosting ohne Composer wertlos - das muss auffallen,