Warning removal "a la Tyler"
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 2 Feb 2002 03:00:39 +0000 (03:00 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 2 Feb 2002 03:00:39 +0000 (03:00 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2340 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/strings.php

index 4481bd6ba5643f53cff2b3dafc25b5cb973084dc..722cedeca8bae5ddf2dac4cf28ee1cb3db17b2d4 100644 (file)
@@ -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, '&gt;', $pos) === $pos) {