google / recaptcha

PHP client library for reCAPTCHA, a free service to protect your website from spam and abuse.
http://www.google.com/recaptcha/
BSD 3-Clause "New" or "Revised" License
3.47k stars 770 forks source link

Recaptcha not showing dependent on url encoding. #384

Open ConorLinehan opened 4 years ago

ConorLinehan commented 4 years ago

Issue description

Hey all not sure is this the correct place, but couldn't find anywhere else to report client recaptcha problems. When a url contains certain characters e.g % recaptcha fails to show.

Environment

Reproducing the issue

  1. Visit page https://recaptcha-demo.appspot.com/recaptcha-v2-invisible.php and notice recaptcha on bottom right.

  2. Visit page https://recaptcha-demo.appspot.com/recaptcha-v2-invisible.php%a and notice no recaptcha.

  3. Also happens on this page. https://www.globetrotter.ch/de/3286/Reisevortr%C3%A4ge-%ABUnterwegs-mit-%BB-%7C-Globetrotter.htm

AlexMavpa commented 3 years ago

I had the same problem and i've found a solution for me - using encodeURIComponent (not url encoding!) for generating my urls and everything works good