diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-05 08:27:30 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-01-05 08:27:30 +0000 |
| commit | 63a99a2d3e1c0da960b295cb52f2d016ef7c6b97 (patch) | |
| tree | b07a31691bd51d0660edaa6f76e89871abfd70b1 /plugins | |
| parent | 4df96779f81a8e299c21d1d0c8ff45677747d397 (diff) | |
- Fix possible ID duplication when adding filter rules very fast (#1488288)
git-svn-id: https://svn.roundcube.net/trunk@5710 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/managesieve/Changelog | 1 | ||||
| -rw-r--r-- | plugins/managesieve/managesieve.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/managesieve/Changelog b/plugins/managesieve/Changelog index 05506120e..f59859d9a 100644 --- a/plugins/managesieve/Changelog +++ b/plugins/managesieve/Changelog @@ -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] ----------------------------------------------------------- diff --git a/plugins/managesieve/managesieve.php b/plugins/managesieve/managesieve.php index 5ac406ade..283f7ceb4 100644 --- a/plugins/managesieve/managesieve.php +++ b/plugins/managesieve/managesieve.php @@ -1542,7 +1542,7 @@ class managesieve extends rcube_plugin private function genid() { - $result = intval(rcube_timer()); + $result = preg_replace('/[^0-9]/', '', microtime(true)); return $result; } |
