merged branch kriswallsmith/kernel/unnecessary-regex (PR #3104)

Commits
-------

7f7f82a [HttpKernel] removed unnecessary regex

Discussion
----------

[HttpKernel] removed unnecessary regex

The pattern was also flawed because of the unescaped `.`

```
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
```
This commit is contained in:
Fabien Potencier 2012-01-12 18:47:17 +01:00
commit fb3513a50e

View File

@ -64,7 +64,7 @@ class Esi
return false;
}
return (Boolean) preg_match('#ESI/1.0#', $value);
return false !== strpos($value, 'ESI/1.0');
}
/**