Skip to content

Commit 5453f3e

Browse files
bug symfony#31380 [WebProfilerBundle] Don't filter submitted IP values (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- [WebProfilerBundle] Don't filter submitted IP values | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | symfony#31378 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | - I don't think we need to filter the value submitted by users in this case. Commits ------- 29bd2ad [WebProfilerBundle] Don't filter submitted IP values
2 parents 7494d46 + 29bd2ad commit 5453f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public function searchAction(Request $request)
299299

300300
$this->profiler->disable();
301301

302-
$ip = preg_replace('/[^:\d\.]/', '', $request->query->get('ip'));
302+
$ip = $request->query->get('ip');
303303
$method = $request->query->get('method');
304304
$statusCode = $request->query->get('status_code');
305305
$url = $request->query->get('url');

0 commit comments

Comments
 (0)