X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Furl_parser.php;h=5256ca2804dd6d89b279cc2ef38bcd7673674fd1;hp=32fdc392f04ce52c9eb92fb279e44256bcb4b28d;hb=3ba5c6063eb9282838b862d4f206266d0034e905;hpb=6c99d1de81366bceab6c9d6cf12179eedc81f9bc diff --git a/functions/url_parser.php b/functions/url_parser.php index 32fdc392..5256ca28 100644 --- a/functions/url_parser.php +++ b/functions/url_parser.php @@ -6,7 +6,7 @@ * This code provides various string manipulation functions that are * used by the rest of the SquirrelMail code. * - * @copyright © 1999-2006 The SquirrelMail Project Team + * @copyright © 1999-2007 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -133,8 +133,8 @@ function parseUrl (&$body) { $target_pos = strlen($check_str) + $start; } - /* If there was a token to replace, replace it */ - if ($target_token == 'mailto:') { // rfc 2368 (mailto URL) + // rfc 2368 (mailto URL) + if ($target_token == 'mailto:') { $target_pos += 7; //skip mailto: $end = $blength; @@ -163,6 +163,7 @@ function parseUrl (&$body) { } } else + /* If there was a token to replace, replace it */ if ($target_token != '') { /* Find the end of the URL */ $end = $blength;