More places to use Horde_Support_Randomid::.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 6 Aug 2010 19:25:51 +0000 (13:25 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 6 Aug 2010 19:25:51 +0000 (13:25 -0600)
imp/lib/Compose.php
imp/lib/Injector/Binder/Imaptree.php

index 6ac3d0f..96cd892 100644 (file)
@@ -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);
index 6948da0..f99701f 100644 (file)
@@ -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));