We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01309d8 commit 45a668aCopy full SHA for 45a668a
lib/internal/Magento/Framework/App/Request/Http.php
@@ -413,8 +413,7 @@ public function __sleep()
413
public function isSafeMethod()
414
{
415
if ($this->isSafeMethod === null) {
416
- $this->isSafeMethod = isset($_SERVER['REQUEST_METHOD'])
417
- && (in_array($_SERVER['REQUEST_METHOD'], $this->safeRequestTypes));
+ $this->isSafeMethod = in_array($_SERVER['REQUEST_METHOD'] ?? null, $this->safeRequestTypes, true);
418
}
419
return $this->isSafeMethod;
420
0 commit comments