Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / PageCache / RequestPolicy / CommandLineOrUnsafeMethod.php
index bbf85a33e9976be9278663eb17f970b39947ca9d..27a1f7120d75b144e1ed68e0a1537a72a2e084f8 100644 (file)
@@ -18,7 +18,7 @@ class CommandLineOrUnsafeMethod implements RequestPolicyInterface {
    * {@inheritdoc}
    */
   public function check(Request $request) {
-    if ($this->isCli() || !$request->isMethodSafe()) {
+    if ($this->isCli() || !$request->isMethodCacheable()) {
       return static::DENY;
     }
   }