Trim whitespace from user key inputs

Stevenj007 - June 2, 2008 - 21:16
Project:reCAPTCHA
Version:6.x-1.0
Component:reCAPTCHA Mailhide
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

Problem:
When copying and pasting the keys from reCaptcha mailhide into the configuration text boxes I ended up with a whitespace at the end of the private key. This led to the following obscure error:
warning: pack() [function.pack]: Type H: illegal hex digit in recaptcha\recaptchalib.php on line 237.

Suggestion:Trim whitespace from user key inputs before using them throughout the module.

#1

cdragin - May 13, 2009 - 17:07

I'm having the same problem but do not appear to have any whitespace at the end of the keys. I also looked at a similar (closed) issue that said "Using a different key in the Input Filter Section fixed it"...which I assume means getting a new key from recaptcha...am I reading that correctly?

 
 

Drupal is a registered trademark of Dries Buytaert.