Explorar o código

Moved line to prevent enless loops

indiri69 %!s(int64=23) %!d(string=hai) anos
pai
achega
dab10fdbbd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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) {