From: Michael M Slusarz Date: Wed, 11 Aug 2010 07:44:47 +0000 (-0600) Subject: Use str_replace() instead of strtr() X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f3d20c5b924efbd2ec6e3426c57cbaf8b5a34321;p=horde.git Use str_replace() instead of strtr() --- diff --git a/framework/Support/lib/Horde/Support/Randomid.php b/framework/Support/lib/Horde/Support/Randomid.php index 4ca64929a..f3db7964b 100644 --- a/framework/Support/lib/Horde/Support/Randomid.php +++ b/framework/Support/lib/Horde/Support/Randomid.php @@ -48,7 +48,7 @@ class Horde_Support_Randomid { /* Base64 can have /, +, and = characters. Restrict to just * numbers and letters. */ - $this->_rid = str_replace(array('/', '+', '='), 0, base64_encode(pack('H*', mt_rand() . strtr(uniqid('', true), '.', '') . dechex(getmypid())))); + $this->_rid = str_replace(array('/', '+', '='), 0, base64_encode(pack('H*', mt_rand() . str_replace('.', '', uniqid('', true)) . dechex(getmypid())))); } /**