Skip to content

plus sign (+) is replaced by space in email or telephone field #14

@roxen1234

Description

@roxen1234

Nice wrapper, but I had the same problem as described in this post:
http://forums.sugarcrm.com/f6/adding-email-addresses-via-rest-plus-sign-replaced-space-setting-relation-81743/

urlencode($jsonEncodedData) resolved the problem for me.

private function rest_request($call_name, $call_arguments) {
    $ch = curl_init(); 
    $post_data = 'method='.$call_name.'&input_type=JSON&response_type=JSON';
    $jsonEncodedData = json_encode($call_arguments);
//  $post_data = $post_data . "&rest_data=" . $jsonEncodedData;
    $post_data = $post_data . "&rest_data=" . urlencode($jsonEncodedData); ....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions