Update: ersetzten Plugin-Ordner ignorieren; Uploads trotz open_basedir
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 3m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 3m17s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 3m35s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 3m43s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 5m14s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 5m18s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 5m16s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 5m11s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m40s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-26 18:45:09 +00:00
parent 30d2e42ee3
commit 6bede3e2ee
103 changed files with 477 additions and 397 deletions

View file

@ -9,5 +9,8 @@
"requires": {
"core": ">=0.8.0",
"php": ">=8.3"
}
},
"replaces": [
"documents"
]
}

View file

@ -80,8 +80,9 @@ class SpeiseplanController extends Controller
$monday = Week::mondayOf($data['week']);
$file = $request->file('image');
[$width, $height] = @getimagesize($file->getRealPath()) ?: [null, null];
$path = $file->storeAs('speiseplan', $monday->toDateString().'-'.Str::random(12).'.'.strtolower($file->extension() ?: 'jpg'), Week::DISK);
// Maße aus der gespeicherten Datei (das PHP-Upload-Verzeichnis ist auf Shared Hosting oft nicht lesbar)
[$width, $height] = @getimagesize(Storage::disk(Week::DISK)->path($path)) ?: [null, null];
$existing = Week::query()->where('week_start', $monday->toDateString())->first();
$old = $existing?->path;