[HttpKernel] truncate profiler token to 6 chars (see #7665)
This commit is contained in:
parent
ef0cebfaa6
commit
1adbe3cad6
@ -165,7 +165,7 @@ class Profiler
|
||||
return;
|
||||
}
|
||||
|
||||
$profile = new Profile(sha1(uniqid(mt_rand(), true)));
|
||||
$profile = new Profile(substr(sha1(uniqid(mt_rand(), true)), 0, 6));
|
||||
$profile->setTime(time());
|
||||
$profile->setUrl($request->getUri());
|
||||
$profile->setIp($request->getClientIp());
|
||||
|
Reference in New Issue
Block a user