diff --git a/base.php b/base.php index 86c585bc35..92c4fa5576 100644 --- a/base.php +++ b/base.php @@ -9,7 +9,7 @@ // | Author: liu21st // +---------------------------------------------------------------------- -define('THINK_VERSION', '5.0.23'); +define('THINK_VERSION', '5.0.24'); define('THINK_START_TIME', microtime(true)); define('THINK_START_MEM', memory_get_usage()); define('EXT', '.php'); diff --git a/library/think/Request.php b/library/think/Request.php index 47356ecd92..5997a763a1 100644 --- a/library/think/Request.php +++ b/library/think/Request.php @@ -529,6 +529,7 @@ public function method($method = false) } else { $this->method = 'POST'; } + unset($_POST[Config::get('var_method')]); } elseif (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) { $this->method = strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']); } else {