diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-11-15 13:20:16 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-11-18 11:55:56 +0000 |
| commit | 748dbe155a6d19d66918ad136947fa23ee8f8469 (patch) | |
| tree | ed4743592d3b0aea968f9cbae7e5d32c00b546fe /app/Http/RequestHandlers/PasteFact.php | |
| parent | f783aa1f4cd6d54a90d24a3d6be2996a3951fced (diff) | |
| download | webtrees-748dbe155a6d19d66918ad136947fa23ee8f8469.tar.gz webtrees-748dbe155a6d19d66918ad136947fa23ee8f8469.tar.bz2 webtrees-748dbe155a6d19d66918ad136947fa23ee8f8469.zip | |
Use Validator
Diffstat (limited to 'app/Http/RequestHandlers/PasteFact.php')
| -rw-r--r-- | app/Http/RequestHandlers/PasteFact.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Http/RequestHandlers/PasteFact.php b/app/Http/RequestHandlers/PasteFact.php index 5d18710da2..187085098f 100644 --- a/app/Http/RequestHandlers/PasteFact.php +++ b/app/Http/RequestHandlers/PasteFact.php @@ -57,8 +57,7 @@ class PasteFact implements RequestHandlerInterface { $tree = Validator::attributes($request)->tree(); $xref = Validator::attributes($request)->isXref()->string('xref'); - $params = (array) $request->getParsedBody(); - $fact_id = $params['fact_id']; + $fact_id = Validator::parsedBody($request)->string('fact_id'); $record = Registry::gedcomRecordFactory()->make($xref, $tree); $record = Auth::checkRecordAccess($record, true); |
