Skip to content
Snippets Groups Projects
Commit b03ec148 authored by Prasad's avatar Prasad
Browse files

Fixes #88: HTML tag conversion for SMS message

parent ed4f2771
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -59,6 +59,10 @@ class VTSMSTask extends VTTask {
foreach($recepients as $tonumber) {
if(!empty($tonumber)) $tonumbers[] = $tonumber;
}
//As content could be sent with HTML tags.
$content = strip_tags(br2nl($content));
$this->smsNotifierId = SMSNotifier::sendsms($content, $tonumbers, $current_user->id, $relatedIdsArray);
$util->revertUser();
}
......@@ -89,4 +93,4 @@ class VTSMSTask extends VTTask {
return $result;
}
}
?>
\ No newline at end of file
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment