summaryrefslogtreecommitdiff
path: root/httemplate/graph
diff options
context:
space:
mode:
authormark <mark>2012-01-26 20:27:06 +0000
committermark <mark>2012-01-26 20:27:06 +0000
commit3a3a22ab974d5c23dc48c397a31ffc00c6d18a2e (patch)
tree0072d8e1ea80279f679d9974200882d393f812c3 /httemplate/graph
parenteaa5c4f75074842dcae9a84c14b028c32b8dadb0 (diff)
fix bizarre session id bug, from #15393
Diffstat (limited to 'httemplate/graph')
-rw-r--r--httemplate/graph/elements/report.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/graph/elements/report.html b/httemplate/graph/elements/report.html
index 3773fbf..6d2a90c 100644
--- a/httemplate/graph/elements/report.html
+++ b/httemplate/graph/elements/report.html
@@ -278,7 +278,8 @@ if ( $cgi->param('session') =~ /^(\d+)$/ ) {
%opt = %{ $m->cache->get($session) };
}
else {
- $session = sprintf("%10d%6d", time, int(rand(1000000)));
+ $session = sprintf("%010d%06d", time, int(rand(1000000)));
+ sleep(2);
$m->cache->set($session, \%opt, '1h');
}