Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9cdb9a

Browse files
committed
[HttpKernel] Fixed possible profiler token collision (closes #7272, closes #7171)
1 parent 5f2cea3 commit b9cdb9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Profiler/Profiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function collect(Request $request, Response $response, \Exception $except
165165
return;
166166
}
167167

168-
$profile = new Profile(uniqid());
168+
$profile = new Profile(sha1(uniqid(mt_rand(), true)));
169169
$profile->setTime(time());
170170
$profile->setUrl($request->getUri());
171171
$profile->setIp($request->getClientIp());

0 commit comments

Comments
 (0)