From b74e088adb36917c4cc6757e0f4e8e6c9344a3ba Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Sat, 2 Feb 2002 03:00:39 +0000 Subject: [PATCH] Warning removal "a la Tyler" git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2340 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/strings.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/functions/strings.php b/functions/strings.php index 4481bd6b..722cedec 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -209,8 +209,9 @@ function translateText(&$body, $wrap_at, $charset) { $Quotes = 0; $pos = 0; + $j = strlen( $line ); - while ( $line <> '' ) { + while ( $pos < $j ) { if ($line[$pos] == ' ') { $pos ++; } else if (strpos($line, '>', $pos) === $pos) { -- 2.25.1