Browse Source

Moved line to prevent enless loops

indiri69 23 years ago
parent
commit
dab10fdbbd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/url_parser.php

+ 1 - 1
functions/url_parser.php

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