소스 검색

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) {