Sicherheitsupdate nach Audit (0.29.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m50s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m34s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m45s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m30s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m7s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m9s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m8s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m5s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 48s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-27 11:34:54 +00:00
parent a37895a16a
commit f1202bea08
226 changed files with 1952 additions and 450 deletions

View file

@ -2,6 +2,7 @@
namespace Inhaus\Plugins\Qm\Filament\Resources\QmFolders;
use App\Filament\Components\SafeUpload;
use App\Support\Icons;
use BackedEnum;
use Filament\Actions\Action;
@ -83,9 +84,8 @@ class QmFolderResource extends Resource
->getOptionLabelUsing(fn (?string $value) => $value ? Icons::option($value) : null)
->placeholder(fn (Get $get) => blank($get('parent_id')) ? 'Ordner' : 'Vom übergeordneten Ordner übernehmen')
->helperText('Alle 1.800+ Symbole über die Suche (englische Namen).'),
FileUpload::make('icon_path')->label('Oder eigenes Symbol hochladen')
->disk('uploads')->directory('qm-icons')->visibility('public')
->acceptedFileTypes(['image/svg+xml', 'image/png', 'image/webp', 'image/jpeg'])->maxSize(1024)
SafeUpload::apply(FileUpload::make('icon_path'), ['image/svg+xml', 'image/png', 'image/webp', 'image/jpeg'])->label('Oder eigenes Symbol hochladen')
->disk('uploads')->directory('qm-icons')->visibility('public')->maxSize(1024)
->helperText('SVG (empfohlen), PNG, WebP oder JPG, quadratisch. Ersetzt das Symbol aus der Auswahl.')
->live(),
Toggle::make('icon_mono')->label('Eigenes Symbol einfarbig darstellen')->default(true)

View file

@ -4,6 +4,7 @@ namespace Inhaus\Plugins\Qm\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Support\Audit;
use App\Support\Csv;
use App\Support\RichText;
use App\Support\Settings;
use Carbon\Carbon;
@ -112,7 +113,7 @@ class QmController extends Controller
$rows[] = [$p['name'], $p['department'], $p['job_title'], 'offen', ''];
}
$csv = "\u{FEFF}".collect($rows)->map(fn (array $row) => implode(';', array_map(fn ($v) => '"'.str_replace('"', '""', (string) $v).'"', $row)))->implode("\r\n");
$csv = "\u{FEFF}".collect($rows)->map(fn (array $row) => implode(';', array_map(fn ($v) => '"'.str_replace('"', '""', Csv::cell($v)).'"', $row)))->implode("\r\n");
return response($csv, 200, [
'Content-Type' => 'text/csv; charset=UTF-8',

View file

@ -90,8 +90,8 @@ class Ocr
{
$binary = trim((string) $this->settings->get(self::SETTING_BINARY, '')) ?: 'tesseract';
// Nur ein Programmname oder ein absoluter Pfad – keine Parameter.
return preg_match('#^(/[\w./-]+|[\w.-]+)$#', $binary) ? $binary : 'tesseract';
// Nur Tesseract selbst (Programmname oder absoluter Pfad dazu) – kein beliebiges Programm.
return preg_match('#^(/[\w./-]+/)?tesseract(\.exe)?$#', $binary) ? $binary : 'tesseract';
}
private function rasterizer(bool $exec): ?string