Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function handle($request, Closure $next) |
||
25 | { |
||
26 | $signature = $this->slackRequestSignature->create($request); |
||
27 | |||
28 | if (!$this->isEqualsSignature($signature, $request->header('X-Slack-Signature'))) { |
||
|
|||
29 | abort(401, 'The request had an invalid signature.'); |
||
30 | } |
||
31 | |||
32 | return $next($request); |
||
33 | } |
||
34 | |||
40 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.