mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Removing verbs
This commit is contained in:
parent
8c95184780
commit
fdef759d37
|
|
@ -113,7 +113,7 @@ class Request extends RequestAbstract
|
|||
|
||||
if (isset($_SERVER['CONTENT_TYPE'])) {
|
||||
if (strpos($_SERVER['CONTENT_TYPE'], 'application/json') !== false) {
|
||||
if(($json = json_decode(($input = file_get_contents('php://input')), true)) === false || $json === null) {
|
||||
if (($json = json_decode(($input = file_get_contents('php://input')), true)) === false || $json === null) {
|
||||
throw new \Exception('Is not valid json ' . $input);
|
||||
}
|
||||
|
||||
|
|
@ -132,6 +132,12 @@ class Request extends RequestAbstract
|
|||
$this->uri->set($uri['uri']);
|
||||
}
|
||||
|
||||
unset($_FILES);
|
||||
unset($_GET);
|
||||
unset($_POST);
|
||||
unset($_PUT);
|
||||
unset($_HEAD);
|
||||
|
||||
$this->path = explode('/', $this->uri->getPath());
|
||||
$this->l11n->setLanguage($this->path[0]);
|
||||
$this->hash = [];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user