Using the salesforce soap api method, users submitting forms that have things that should be escaped encounter errors. Specifically, submitting something like:
This & this
causes the Soap api to fail with:
PHP Fatal error: Uncaught SoapFault exception: [soapenv:Client] The entity name must immediately follow the '&' in the entity reference.
My solution was to add a patch to call htmlentities on each form entry line.
Patch included below
1300c1300 < $merge_vars[$var_tag] = htmlentities($entry[$field_id]); --- > $merge_vars[$var_tag] = $entry[$field_id]; 1305c1305 < $merge_vars[$var_tag] = htmlentities($value); --- > $merge_vars[$var_tag] = $value; 1311c1311
- The topic ‘[Resolved] Submitting’ is closed to new replies.