summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Core/Request.php17
1 files changed, 3 insertions, 14 deletions
diff --git a/app/Core/Request.php b/app/Core/Request.php
index 31672ff6..a4c426f0 100644
--- a/app/Core/Request.php
+++ b/app/Core/Request.php
@@ -50,26 +50,15 @@ class Request
}
/**
- * Get form values or unserialized json request
+ * Get form values and check for CSRF token
*
* @access public
* @return array
*/
public function getValues()
{
- if (! empty($_POST)) {
-
- if (Security::validateCSRFFormToken($_POST)) {
- return $_POST;
- }
-
- return array();
- }
-
- $result = json_decode($this->getBody(), true);
-
- if ($result) {
- return $result;
+ if (! empty($_POST) && Security::validateCSRFFormToken($_POST)) {
+ return $_POST;
}
return array();