Closed hartenthaler closed 2 years ago
Nope, it doesn't work like that, it's a parameter and not an attribute ... but I found that with the validator also parameters can be drawn - is changed accordingly, see next release. By the way, in the original ClippingsCartModule the parameters are also still explicitly queried via getQueryParams - probably because the query via the Validator requires the parameter to be mandatory, so you can't set it alternatively depending on the context.
I had a security problem (from an unknown IP address, maybe a crawler) and MagicSunday solved it using the new function Validator:: in his modules.
All
$xref = $request->getQueryParams()['xref'] ?? '';
should be replaced by$xref = Validator::attributes($request)->isXref()->string('xref');