Skip to content

Commit

Permalink
Fix: #4119, Replace #4152 parameter validation
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Jan 24, 2022
1 parent 687a02f commit ad40cb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Module/InteractiveTreeModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use Fisharebest\Webtrees\Module\InteractiveTree\TreeView;
use Fisharebest\Webtrees\Registry;
use Fisharebest\Webtrees\Tree;
use Fisharebest\Webtrees\Validator;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;

Expand Down Expand Up @@ -189,7 +190,7 @@ public function getChartAction(ServerRequestInterface $request): ResponseInterfa
$tree = $request->getAttribute('tree');
assert($tree instanceof Tree);

$xref = $request->getQueryParams()['xref'];
$xref = Validator::queryParams($request)->isXref()->requiredString('xref');

$individual = Registry::individualFactory()->make($xref, $tree);
$individual = Auth::checkIndividualAccess($individual, false, true);
Expand Down

0 comments on commit ad40cb9

Please sign in to comment.