Skip to content

Commit

Permalink
use except also
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 20, 2022
1 parent 7e95338 commit e554d47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Routing/Middleware/ValidateSignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ class ValidateSignature
*/
public function handle($request, Closure $next, $relative = null)
{
if ($request->hasValidSignatureWhileIgnoring($this->ignore, $relative !== 'relative')) {
$ignore = property_exists($this, 'except') ? $this->except : $this->ignore;

if ($request->hasValidSignatureWhileIgnoring($ignore, $relative !== 'relative')) {
return $next($request);
}

Expand Down

0 comments on commit e554d47

Please sign in to comment.