Submitted By: David B. Cortarello (Nomius) Date: 07-10-2005 Initial Package Version: 1.0.5 Description: The patch was created from the smf modified package This patch provide the following bug solution: * Fix wrong protocolo parsing in the Sources/Subs-Post.php file diff -Naur ./Sources/Subs-Post.php ../smf2/Sources/Subs-Post.php --- ./Sources/Subs-Post.php 2005-10-07 03:56:39.799664248 -0300 +++ ../smf2/Sources/Subs-Post.php 2005-10-07 03:53:38.491227320 -0300 @@ -286,8 +286,10 @@ $replace = trim($replace); if (!stristr($replace, $protocol . '://')) { - if ($protocol != 'http' || !stristr($replace, 'https://')) - $replace = $protocol . '://' . $replace; + if ($protocol != 'http' || !stristr($replace, 'https://')){ + if (!stristr($replace, 'ed2k://') && !stristr($replace, 'ftp://') && !stristr($replace, 'mms://') && !stristr($replace, 'gopher://') && !stristr($replace, 'file:///') && !stristr($replace, 'rtsp://') && !stristr($replace, 'nntp://')) + $replace = $protocol . '://' . $replace; + } else $replace = stristr($replace, 'https://'); } @@ -989,4 +991,4 @@ AND ID_MEMBER != $ID_MEMBER", __FILE__, __LINE__); } -?> \ No newline at end of file +?>