projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34a28ea
)
Better random ID generation.
author
Michael M Slusarz
<slusarz@curecanti.org>
Mon, 1 Dec 2008 10:27:18 +0000
(
03:27
-0700)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Mon, 1 Dec 2008 22:28:05 +0000
(15:28 -0700)
imp/lib/Search.php
patch
|
blob
|
history
diff --git
a/imp/lib/Search.php
b/imp/lib/Search.php
index
6be0806
..
e073003
100644
(file)
--- a/
imp/lib/Search.php
+++ b/
imp/lib/Search.php
@@
-191,7
+191,7
@@
class IMP_Search
public function createSearchQuery($query, $folders, $search, $label,
$id = null)
{
- $id =
(empty($id)) ? base_convert(microtime() . mt_rand(), 16, 36
) : $this->_strip($id);
+ $id =
is_null($id) ? uniqid(mt_rand()
) : $this->_strip($id);
$_SESSION['imp']['search']['q'][$id] = array(
'query' => serialize($query),
'folders' => $folders,