You are here

static function Messaging_Send_Method::check_subject in Messaging 6.3

Converts strings to plain utf-8 single line

1 call to Messaging_Send_Method::check_subject()
Messaging_Send_Method::message_render in classes/messaging_method.class.inc
Render a template object

File

classes/messaging_method.class.inc, line 249
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Send_Method
Sending method, implements all specific method functionality

Code

static function check_subject($text) {
  $text = messaging_check_plain($text);

  // taken from _sanitizeHeaders() in PEAR mail() : http://pear.php.net/package/Mail
  $text = preg_replace('=((0x0A/%0A|0x0D/%0D|\\n|\\r)\\S).*=i', NULL, $text);
  return $text;
}