[HttpKernel] removed unnecessary regex

The pattern was also flawed because of the unescaped `.`
This commit is contained in:
Kris Wallsmith 2012-01-12 09:33:03 -08:00
parent 7ee2f6da75
commit 7f7f82a53e

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');
}
/**