From 0ad15b1a52923ec0f3a7c5eee70a6fe2a7031258 Mon Sep 17 00:00:00 2001 From: alex-brainstorm Date: Sun, 20 Jul 2003 22:43:15 +0000 Subject: [PATCH] Charset spec test should be case-insensitive git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5359 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_utf7_local.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/imap_utf7_local.php b/functions/imap_utf7_local.php index 261de0aa..eb5db9c4 100644 --- a/functions/imap_utf7_local.php +++ b/functions/imap_utf7_local.php @@ -39,7 +39,7 @@ function imap_utf7_encode_local($s) { return ''; global $default_charset; - if ($default_charset != 'iso-8859-1') { + if (strtolower($default_charset) != 'iso-8859-1') { $utf7_s = sqimap_mb_convert_encoding($s, 'UTF7-IMAP', $default_charset, $default_charset); if ($utf7_s != '') return $utf7_s; @@ -91,7 +91,7 @@ function imap_utf7_decode_local($s) { return ''; global $default_charset; - if ($default_charset != 'iso-8859-1') { + if (strtolower($default_charset) != 'iso-8859-1') { $utf7_s = sqimap_mb_convert_encoding($s, $default_charset, 'UTF7-IMAP', $default_charset); if ($utf7_s != '') return $utf7_s; -- 2.25.1