[HttpKernel] removed unnecessary regex
The pattern was also flawed because of the unescaped `.`
This commit is contained in:
parent
7ee2f6da75
commit
7f7f82a53e
@ -64,7 +64,7 @@ class Esi
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (Boolean) preg_match('#ESI/1.0#', $value);
|
return false !== strpos($value, 'ESI/1.0');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user