diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-02-23 13:27:57 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-02-23 13:27:57 +0000 |
| commit | 1e60ebf4ec0b79281f3f1ea0b814a66cb177998d (patch) | |
| tree | 941167d626c94d998c20602425fd2f4d2cb56a98 /app/Http/RequestHandlers/ExportGedcomClient.php | |
| parent | 423ac716f0fd6fb6479b8d93287e01e93d715067 (diff) | |
| download | webtrees-1e60ebf4ec0b79281f3f1ea0b814a66cb177998d.tar.gz webtrees-1e60ebf4ec0b79281f3f1ea0b814a66cb177998d.tar.bz2 webtrees-1e60ebf4ec0b79281f3f1ea0b814a66cb177998d.zip | |
Working on validation
Diffstat (limited to 'app/Http/RequestHandlers/ExportGedcomClient.php')
| -rw-r--r-- | app/Http/RequestHandlers/ExportGedcomClient.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Http/RequestHandlers/ExportGedcomClient.php b/app/Http/RequestHandlers/ExportGedcomClient.php index c284cd8517..8dd0b30730 100644 --- a/app/Http/RequestHandlers/ExportGedcomClient.php +++ b/app/Http/RequestHandlers/ExportGedcomClient.php @@ -95,7 +95,7 @@ class ExportGedcomClient implements RequestHandlerInterface $privacy = Validator::parsedBody($request)->isInArray(['none', 'gedadmin', 'user', 'visitor'])->string('privacy'); $encoding = Validator::parsedBody($request)->isInArray([UTF8::NAME, UTF16BE::NAME, ANSEL::NAME, ASCII::NAME, Windows1252::NAME])->string('encoding'); $line_endings = Validator::parsedBody($request)->isInArray(['CRLF', 'LF'])->string('line_endings'); - $media_path = Validator::parsedBody($request)->optionalString('media_path') ?? ''; + $media_path = Validator::parsedBody($request)->string('media_path'); $access_levels = [ 'gedadmin' => Auth::PRIV_NONE, |
