Moved line to prevent enless loops
authorindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 10 Aug 2002 19:39:07 +0000 (19:39 +0000)
committerindiri69 <indiri69@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 10 Aug 2002 19:39:07 +0000 (19:39 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3286 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/url_parser.php

index 66ea2315a21050db963926528c4030fe0da9afcd..a686dbae1c7aedafb7c2fe7efee9db0f2aa86a4e 100644 (file)
@@ -82,10 +82,10 @@ function parseUrl (&$body) {
     global $url_parser_poss_ends, $url_parser_url_tokens;;
     $start      = 0;
     $blength    = strlen($body);
-    $target_pos = $blength;
 
     while ($start != $blength) {
         $target_token = '';
+        $target_pos = $blength;
 
         /* Find the first token to replace */
         foreach ($url_parser_url_tokens as $the_token) {