From b020b0dae3f274dd16ec7f64df30e50860e2f5da Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 6 Aug 2010 13:25:51 -0600 Subject: [PATCH] More places to use Horde_Support_Randomid::. --- imp/lib/Compose.php | 2 +- imp/lib/Injector/Binder/Imaptree.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/lib/Compose.php b/imp/lib/Compose.php index 6ac3d0f9b..96cd892d7 100644 --- a/imp/lib/Compose.php +++ b/imp/lib/Compose.php @@ -1943,7 +1943,7 @@ class IMP_Compose if ($GLOBALS['conf']['compose']['use_vfs']) { try { $vfs = $GLOBALS['injector']->getInstance('Horde_Vfs')->getVfs(); - $cacheID = strval(new Horde_Support_Uuid()); + $cacheID = strval(new Horde_Support_Randomid()); if ($vfs_file) { $vfs->write(self::VFS_ATTACH_PATH, $cacheID, $data, true); diff --git a/imp/lib/Injector/Binder/Imaptree.php b/imp/lib/Injector/Binder/Imaptree.php index 6948da0b5..f99701fbd 100644 --- a/imp/lib/Injector/Binder/Imaptree.php +++ b/imp/lib/Injector/Binder/Imaptree.php @@ -25,7 +25,7 @@ class IMP_Injector_Binder_Imaptree implements Horde_Injector_Binder if (empty($_SESSION['imp']['cache']['tree'])) { if (!($cache instanceof Horde_Cache_Null)) { - $_SESSION['imp']['cache']['tree'] = strval(new Horde_Support_Uuid()); + $_SESSION['imp']['cache']['tree'] = strval(new Horde_Support_Randomid()); } } else { $instance = @unserialize($cache->get($_SESSION['imp']['cache']['tree'], 86400)); -- 2.11.0