You are here

static function Messaging_Method::check_subject in Messaging 6.4

Converts strings to plain utf-8 single line

2 calls to Messaging_Method::check_subject()
messaging_check_subject in includes/text.inc
Converts strings to plain utf-8 single line
Messaging_Method::default_render in includes/messaging_method.class.inc
Renders full message with header and body

File

includes/messaging_method.class.inc, line 107
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Method
Base class for all Incoming and Sending methods

Code

static function check_subject($text) {
  $text = messaging_text_check_plain($text, NULL);

  // 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;
}