[HttpKernel] Fixed possible profiler token collision (closes #7272, closes #7171)

This commit is contained in:
Fabien Potencier 2013-03-06 20:10:14 +01:00
parent 5f2cea3ef0
commit b9cdb9a26d

View File

@ -165,7 +165,7 @@ class Profiler
return;
}
$profile = new Profile(uniqid());
$profile = new Profile(sha1(uniqid(mt_rand(), true)));
$profile->setTime(time());
$profile->setUrl($request->getUri());
$profile->setIp($request->getClientIp());