From: <ki...@us...> - 2007-07-20 16:58:39
|
Revision: 12562 http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12562&view=rev Author: kink Date: 2007-07-20 09:58:38 -0700 (Fri, 20 Jul 2007) Log Message: ----------- fix decryption of ipv6 headers (thanks Tomas Kuliavas) Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/contrib/decrypt_headers.php Modified: branches/SM-1_4-STABLE/squirrelmail/contrib/decrypt_headers.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/contrib/decrypt_headers.php 2007-07-20 16:53:53 UTC (rev 12561) +++ branches/SM-1_4-STABLE/squirrelmail/contrib/decrypt_headers.php 2007-07-20 16:58:38 UTC (rev 12562) @@ -37,14 +37,14 @@ .hexdec(substr($hex,4,2)).'.' .hexdec(substr($hex,6,2)); } elseif (strlen($hex)==32) { - $ret=hexdec(substr($hex,0,4)).':' - .hexdec(substr($hex,4,4)).':' - .hexdec(substr($hex,8,4)).':' - .hexdec(substr($hex,12,4)).':' - .hexdec(substr($hex,16,4)).':' - .hexdec(substr($hex,20,4)).':' - .hexdec(substr($hex,24,4)).':' - .hexdec(substr($hex,28,4)); + $ret=substr($hex,0,4).':' + .substr($hex,4,4).':' + .substr($hex,8,4).':' + .substr($hex,12,4).':' + .substr($hex,16,4).':' + .substr($hex,20,4).':' + .substr($hex,24,4).':' + .substr($hex,28,4); } else { $ret=$hex; } @@ -88,4 +88,4 @@ <button type="submit" name="submit" value="submit">Submit</button> </p> </form> -</body></html> \ No newline at end of file +</body></html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |