blaenk / wp-recaptcha

I gave ownership of this project to Google many years ago
Other
38 stars 16 forks source link

MailHide breaks HTML5-Validity (+fix) #52

Open fntc opened 12 years ago

fntc commented 12 years ago

When hiding mails a link is included containing two parameters. To ensure HTML5 validity the & between those parameters should be encoded as &

in recaptchalib.php , function recaptcha_mailhide_url :

change

return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail);

to

return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail);

This seems to be an upstream issue with recaptchas lib, but a fix would be nice.

ace-dent commented 10 years ago

Thanks for posting- but both lines look the same?