浏览代码

Moved line to prevent enless loops

indiri69 23 年之前
父节点
当前提交
dab10fdbbd
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {