From: Marcin Haba Date: Sat, 29 Nov 2014 15:04:27 +0000 (+0100) Subject: baculum: Support for requests with over 1000 input vars (default value php.ini) X-Git-Tag: Release-7.2.0~116 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e22603c2fcf6704c0bade829c687756265c5e467;p=bacula%2Fbacula baculum: Support for requests with over 1000 input vars (default value php.ini) --- 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 +?>