summaryrefslogtreecommitdiff
path: root/includes/unicode.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/unicode.inc')
-rw-r--r--includes/unicode.inc2
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 = '';