Fix
[squirrelmail.git] / 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) {