Explorar el Código

[HttpKernel] removed unnecessary regex

The pattern was also flawed because of the unescaped `.`
Kris Wallsmith hace 13 años
padre
commit
7f7f82a53e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Symfony/Component/HttpKernel/HttpCache/Esi.php

+ 1 - 1
src/Symfony/Component/HttpKernel/HttpCache/Esi.php

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