瀏覽代碼

Multiple URLs on one line weren't getting parsed correctly

pdontthink 21 年之前
父節點
當前提交
724e725716
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/url_parser.php

+ 1 - 1
functions/url_parser.php

@@ -111,7 +111,7 @@ function parseUrl (&$body) {
         /* Find the first token to replace */
         foreach ($url_parser_url_tokens as $the_token) {
             $pos = strpos(strtolower($body), $the_token, $start);
-            if (is_int($pos) && $pos < $blength) {
+            if (is_int($pos) && $pos < $target_pos) {
                 $target_pos   = $pos;
                 $target_token = $the_token;
             }