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:
commit
fb3513a50e
@ -64,7 +64,7 @@ class Esi
|
||||
return false;
|
||||
}
|
||||
|
||||
return (Boolean) preg_match('#ESI/1.0#', $value);
|
||||
return false !== strpos($value, 'ESI/1.0');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user