FoxyCart / FoxyCart-Cart-Validation--PHP

Automatically sign (with HMAC SHA-256) all links and forms in a block of HTML
http://wiki.foxycart.com/static/redirect/price_validation
13 stars 9 forks source link

Improve handing of spaces in input names #9

Open brettflorio opened 9 years ago

brettflorio commented 9 years ago

From a FoxyCart user:

<input id='event-participant'
type="text" name="Participant Name" value="" placeholder="Enter
participant's name" class='uk-width-1-1 uk-form-large'
data-parsley-required/>

Fails to add to the cart using the HMAC script as it's trying to hash 'Participant_Name'. The docs mentioned this would happen, just trying to change it or make it a configurable option. Not world-ending, but would make the client smile.