Support » Plugin: Gravity Forms Salesforce Add-on » Submitting

  • Resolved gmcinnes


    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

    <             			$merge_vars[$var_tag] = htmlentities($entry[$field_id]);
    >             			$merge_vars[$var_tag] = $entry[$field_id];
    <             				$merge_vars[$var_tag][] = htmlentities($value);
    >             				$merge_vars[$var_tag][] = $value;

Viewing 2 replies - 1 through 2 (of 2 total)
  • gmcinnes


    Oops. That last patch was bad. Replace htmlentities call to htmlspecialchars

    Plugin Contributor Zack Katz


    Updated in 2.0.2; thanks for the heads up!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Submitting’ is closed to new replies.