From e22603c2fcf6704c0bade829c687756265c5e467 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sat, 29 Nov 2014 16:04:27 +0100 Subject: [PATCH] baculum: Support for requests with over 1000 input vars (default value php.ini) --- gui/baculum/protected/Class/BaculumAPI.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gui/baculum/protected/Class/BaculumAPI.php b/gui/baculum/protected/Class/BaculumAPI.php index 4c9fb174e3..29029fa6ec 100644 --- a/gui/baculum/protected/Class/BaculumAPI.php +++ b/gui/baculum/protected/Class/BaculumAPI.php @@ -109,7 +109,16 @@ abstract class BaculumAPI extends TPage $params = (object)$this->Request['update']; $this->set($id, $params); } else { - parse_str(file_get_contents("php://input"),$responseData); + $inputstr = file_get_contents("php://input"); + $chunks = explode('&', $inputstr); + $responseData = array(); + for($i = 0; $iset($id, $params); @@ -139,4 +148,4 @@ abstract class BaculumAPI extends TPage return $this->Application->getModule($name); } } -?> \ No newline at end of file +?> -- 2.39.5