File tree Expand file tree Collapse file tree 2 files changed +1
-2115
lines changed
Expand file tree Collapse file tree 2 files changed +1
-2115
lines changed Original file line number Diff line number Diff line change @@ -266,13 +266,12 @@ protected function handleCaptchaRemediation($ip)
266266
267267 if (null === $ this ->getSessionVariable ('crowdsec_captcha_has_to_be_resolved ' )) {
268268 // Set up the first captcha remediation.
269-
270269 $ this ->storeNewCaptchaCoupleInSession ();
271270 $ this ->setSessionVariable ('crowdsec_captcha_has_to_be_resolved ' , true );
272271 $ this ->setSessionVariable ('crowdsec_captcha_resolution_failed ' , false );
273272 $ this ->setSessionVariable ('crowdsec_captcha_resolution_redirect ' , 'POST ' === $ this ->getHttpMethod () &&
274273 !empty ($ _SERVER ['HTTP_REFERER ' ]) ?
275- $ _SERVER ['HTTP_REFERER ' ] : $ _SERVER [ ' REQUEST_URI ' ] );
274+ $ _SERVER ['HTTP_REFERER ' ] : ' / ' );
276275 }
277276
278277 // Display captcha page if this is required.
You can’t perform that action at this time.
0 commit comments