Skip to content

Commit c7d4c3a

Browse files
committed
Send default response
1 parent ff57e2f commit c7d4c3a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/Http/Middleware/VerifyReCaptcha.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ public function handle($request, Closure $next)
3939

4040
$url = parse_url($request->url());
4141

42-
if (array_key_exists('host', $url)) {
43-
return $result->hostname === $url['host'];
42+
if (! array_key_exists('host', $url)) {
43+
return false;
4444
}
45+
46+
return $result->hostname === $url['host'];;
4547
};
4648

4749
if ($result->success && (! config('recaptcha.verify_domain') || $verified($result, $request))) {

0 commit comments

Comments
 (0)