From 6f1450f4c0f726d0592ff8942723fdad6f14a573 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Mon, 12 Jul 2004 07:53:37 +0000 Subject: [PATCH] Multiple URLs on one line weren't getting parsed correctly git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7755 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/url_parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/url_parser.php b/functions/url_parser.php index 9e35726e..82da7973 100644 --- a/functions/url_parser.php +++ b/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; } -- 2.25.1