From ac62eb21bfe7c04bdfc10fc3329a003f681b2b67 Mon Sep 17 00:00:00 2001 From: alex-brainstorm Date: Sun, 27 Jul 2003 11:13:34 +0000 Subject: [PATCH] Repair my mistake : wrong arguments order for stristr (still not used to php's order :( git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@5448 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/imap_utf7_local.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/imap_utf7_local.php b/functions/imap_utf7_local.php index ecaa7ca3..3435f48f 100644 --- a/functions/imap_utf7_local.php +++ b/functions/imap_utf7_local.php @@ -16,9 +16,9 @@ function sqimap_mb_convert_encoding($str, $to_encoding, $from_encoding, $default // Allows mbstring functions only with iso-8859-*, utf-8 and // iso-2022-jp (Japanese) // koi8-r and gb2312 can be added only in php 4.3+ - if ( stristr('iso-8859-',substr($default_charset,0,9)) || - stristr('utf-8',$default_charset) || - stristr('iso-2022-jp',$default_charset) ) { + if ( stristr($default_charset, 'iso-8859-') || + stristr($default_charset, 'utf-8') || + stristr($default_charset, 'iso-2022-jp') ) { if (function_exists('mb_convert_encoding')) { return mb_convert_encoding($str, $to_encoding, $from_encoding); } -- 2.25.1