mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 22:38:42 +00:00
fixes Orange-Management#202
This commit is contained in:
parent
9a7c3ad0f4
commit
3713e3fc11
|
|
@ -73,14 +73,6 @@ final class Request extends RequestAbstract
|
||||||
*/
|
*/
|
||||||
protected array $hash = [];
|
protected array $hash = [];
|
||||||
|
|
||||||
/**
|
|
||||||
* Uploaded files.
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
* @since 1.0.0
|
|
||||||
*/
|
|
||||||
protected array $files;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
|
|
@ -177,6 +169,7 @@ final class Request extends RequestAbstract
|
||||||
\parse_str($content, $temp);
|
\parse_str($content, $temp);
|
||||||
$this->data += $temp;
|
$this->data += $temp;
|
||||||
} elseif (\stripos($_SERVER['CONTENT_TYPE'], 'multipart/form-data') !== false) {
|
} elseif (\stripos($_SERVER['CONTENT_TYPE'], 'multipart/form-data') !== false) {
|
||||||
|
$content = file_get_contents('php://input');
|
||||||
$stream = \fopen('php://input', 'r');
|
$stream = \fopen('php://input', 'r');
|
||||||
$partInfo = null;
|
$partInfo = null;
|
||||||
$boundary = null;
|
$boundary = null;
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,14 @@ abstract class RequestAbstract implements MessageInterface
|
||||||
*/
|
*/
|
||||||
protected array $data = [];
|
protected array $data = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Files data.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
protected array $files = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Request lock.
|
* Request lock.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user