Browse Source

Moved line to prevent enless loops

indiri69 23 năm trước cách đây
mục cha
commit
dab10fdbbd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;;
     $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) {