Beispiel #1
0
 /**
  * Hydrates the input array
  *
  * @return  void
  */
 protected static function hydrate()
 {
     static::$input = array_merge($_GET, $_POST);
     if (\Input::method() == 'PUT' or \Input::method() == 'DELETE') {
         static::$php_input === null and static::$php_input = file_get_contents('php://input');
         parse_str(static::$php_input, static::$put_delete);
         static::$input = array_merge(static::$input, static::$put_delete);
     }
 }
Beispiel #2
0
 /**
  * Hydrates the input array
  *
  * @return  void
  */
 protected static function hydrate()
 {
     static::$input = array_merge($_GET, $_POST);
     if (\Input::method() == 'PUT' or \Input::method() == 'PATCH' or \Input::method() == 'DELETE') {
         static::$php_input === null and static::$php_input = file_get_contents('php://input');
         if (strpos(static::headers('Content-Type'), 'www-form-urlencoded') > 0 and \Config::get('security.form-double-urlencoded', false)) {
             static::$php_input = urldecode(static::$php_input);
         }
         parse_str(static::$php_input, static::$put_patch_delete);
         static::$input = array_merge(static::$input, static::$put_patch_delete);
     } else {
         static::$put_patch_delete = array();
     }
 }
Beispiel #3
0
 /**
  * Hydrates the input array
  *
  * @return  void
  */
 protected static function hydrate()
 {
     static::$input = array_merge($_GET, $_POST);
     if (\Input::method() == 'PUT' or \Input::method() == 'DELETE') {
         static::$php_input === null and static::$php_input = file_get_contents('php://input');
         if (strpos(static::headers('Content-Type'), 'www-form-urlencoded') > 0) {
             static::$php_input = urldecode(static::$php_input);
         }
         parse_str(static::$php_input, static::$put_delete);
         static::$input = array_merge(static::$input, static::$put_delete);
     }
 }