[Svn] r5710 - trunk/plugins/managesieve

trac at roundcube.net trac at roundcube.net
Thu Jan 5 09:27:30 CET 2012


Author: alec
Date: 2012-01-05 02:27:30 -0600 (Thu, 05 Jan 2012)
New Revision: 5710

Modified:
   trunk/plugins/managesieve/Changelog
   trunk/plugins/managesieve/managesieve.php
Log:
- Fix possible ID duplication when adding filter rules very fast (#1488288)


Modified: trunk/plugins/managesieve/Changelog
===================================================================
--- trunk/plugins/managesieve/Changelog	2012-01-04 14:00:13 UTC (rev 5709)
+++ trunk/plugins/managesieve/Changelog	2012-01-05 08:27:30 UTC (rev 5710)
@@ -1,5 +1,6 @@
 - Fixed setting test type to :is when none is specified
 - Fixed javascript error in IE8
+- Fix possible ID duplication when adding filter rules very fast (#1488288)
 
 * version 5.0-rc1 [2011-11-17]
 -----------------------------------------------------------

Modified: trunk/plugins/managesieve/managesieve.php
===================================================================
--- trunk/plugins/managesieve/managesieve.php	2012-01-04 14:00:13 UTC (rev 5709)
+++ trunk/plugins/managesieve/managesieve.php	2012-01-05 08:27:30 UTC (rev 5710)
@@ -1542,7 +1542,7 @@
 
     private function genid()
     {
-        $result = intval(rcube_timer());
+        $result = preg_replace('/[^0-9]/', '', microtime(true));
         return $result;
     }
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list