Fix broken subject line that I doubt has worked since we went rg=0
[squirrelmail.git] / functions / url_parser.php
index 66ea2315a21050db963926528c4030fe0da9afcd..0d9fc15328ccd388e6e0b5d67a8500853efb62cd 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * url_parser.php
  *
- * Copyright (c) 1999-2002 The SquirrelMail Project Team
+ * Copyright (c) 1999-2003 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * This code provides various string manipulation functions that are
@@ -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) {