function messaging_check_subject in Messaging 6
Same name and namespace in other branches
- 5 messaging.module \messaging_check_subject()
- 6.4 includes/text.inc \messaging_check_subject()
- 6.2 messaging.module \messaging_check_subject()
- 6.3 messaging.module \messaging_check_subject()
Converts strings to plain utf-8 single line
1 call to messaging_check_subject()
- messaging_message_render in ./
messaging.module - Renders full message with header and body
File
- ./
messaging.module, line 754
Code
function messaging_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;
}