Ver código fonte

merged branch pulzarraider/webprofiler_serch_ipv6_fix (PR #3626)

Commits
-------

54b2413 Webprofiler ipv6 search fix

Discussion
----------

[WebProfilerBundle] ipv6 search fix

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
Fabien Potencier 13 anos atrás
pai
commit
aad7d6e758

+ 1 - 1
src/Symfony/Bundle/WebProfilerBundle/Controller/ProfilerController.php

@@ -231,7 +231,7 @@ class ProfilerController extends ContainerAware
 
         $request = $this->container->get('request');
 
-        $ip    = preg_replace('/[^\d\.]/', '', $request->query->get('ip'));
+        $ip    = preg_replace('/[^:\d\.]/', '', $request->query->get('ip'));
         $url   = $request->query->get('url');
         $limit = $request->query->get('limit');
         $token = $request->query->get('token');