8000 merged branch armetiz/patch-7 (PR #5530) · krmcbride/symfony@8e75907 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8e75907

Browse files
committed
merged branch armetiz/patch-7 (PR symfony#5530)
Commits ------- de6658b [Profiler]Use the abstract method to get client IP Discussion ---------- [Profiler]Use the abstract method to get client IP --------------------------------------------------------------------------- by armetiz at 2012-09-17T13:37:19Z This PR is also done for master branch : symfony#5527
2 parents 87065dc + de6658b commit 8e75907

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
$profile = new Profile(uniqid());
166166
$profile->setTime(time());
167167
$profile->setUrl($request->getUri());
168-
$profile->setIp($request->server->get('REMOTE_ADDR'));
168+
$profile->setIp($request->getClientIp());
169169

170170
$response->headers->set('X-Debug-Token', $profile->getToken());
171171

0 commit comments

Comments
 (0)
0