diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-03-13 21:44:49 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-03-13 21:44:49 +0000 |
commit | b6dba27ac22fd34d149d7a1acdfd652f32893743 (patch) | |
tree | 9f3e0ba04487405058da9577f070c2b2f58bcf6d /includes | |
parent | 16fd8c89a59f7851626eb939d33a50703a07ba2b (diff) | |
download | brdo-b6dba27ac22fd34d149d7a1acdfd652f32893743.tar.gz brdo-b6dba27ac22fd34d149d7a1acdfd652f32893743.tar.bz2 |
- sa-2006-004: E-mail header injection issue
Diffstat (limited to 'includes')
-rw-r--r-- | includes/unicode.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/unicode.inc b/includes/unicode.inc index a2d1944c5..6714437b2 100644 --- a/includes/unicode.inc +++ b/includes/unicode.inc @@ -223,7 +223,7 @@ function truncate_utf8($string, $len, $wordsafe = FALSE, $dots = FALSE) { * have to be changed to \r\n or \r. */ function mime_header_encode($string) { - if (!preg_match('/^[\x20-\x7E]*$/', $string)) { + if (preg_match('/[^\x20-\x7E]/', $string)) { $chunk_size = 47; // floor((75 - strlen("=?UTF-8?B??=")) * 0.75); $len = strlen($string); $output = ''; |