Skip to content

Commit

Permalink
trim spaces from texts before they are processed
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmcandrew committed Oct 5, 2017
1 parent 939f541 commit 3372827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/SmsConversation/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function __construct($activity) {
return FALSE;
}
$this->sourceContactId = $activity['source_contact_id'];
$this->sms = $activity['details'];
$this->sms = trim($activity['details']);
}

/**
Expand Down Expand Up @@ -111,4 +111,4 @@ static function sendSMS($contactId, $text, $sourceContactId = NULL) {
}
return TRUE;
}
}
}

0 comments on commit 3372827

Please sign in to comment.