[HttpKernel] truncate profiler token to 6 chars (see #7665)

This commit is contained in:
Gábor Egyed 2013-04-13 20:14:39 +02:00
parent ef0cebfaa6
commit 1adbe3cad6
1 changed files with 1 additions and 1 deletions

View File

@ -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());