@@ -104,7 +104,7 @@ public static function input(bool $safeData = true)
104104
105105 foreach (explode ('& ' , $ d ) as $ chunk ) {
106106 $ param = explode ('= ' , $ chunk );
107- $ data [$ param [0 ]] = $ param [1 ];
107+ $ data [$ param [0 ]] = urldecode ( $ param [1 ]) ;
108108 }
109109 } else if (strpos ($ content_type , 'application/json ' ) !== 0 && strpos ($ content_type , 'multipart/form-data ' ) !== 0 ) {
110110 $ safeData = false ;
@@ -211,7 +211,7 @@ public static function postData($item = null, $default = null)
211211 /**
212212 * Returns request data
213213 *
214- * This methods returns data passed into the request (request or form data).
214+ * This method returns data passed into the request (request or form data).
215215 * This method returns get, post, put patch, delete or raw faw form data or NULL
216216 * if the data isn't found.
217217 *
@@ -240,7 +240,7 @@ public static function get($params, bool $safeData = true)
240240 */
241241 public static function body (bool $ safeData = true )
242242 {
243- $ finalData = array_merge (static ::urlData (), $ _FILES , static ::postData (), static ::input ());
243+ $ finalData = array_merge (static ::urlData (), $ _FILES , static ::postData (), static ::input (false ));
244244
245245 return $ safeData ?
246246 \Leaf \Anchor::sanitize ($ finalData ) :
@@ -273,7 +273,7 @@ public static function files($filenames = null)
273273 * Fetch COOKIE data
274274 *
275275 * This method returns a key-value array of Cookie data sent in the HTTP request, or
276- * the value of a array key if requested; if the array key does not exist, NULL is returned.
276+ * the value of an array key if requested. If the array key does not exist, NULL is returned.
277277 *
278278 * @param string|null $key
279279 * @return array|string|null
@@ -300,7 +300,7 @@ public static function isFormData(): bool
300300 * Get Headers
301301 *
302302 * This method returns a key-value array of headers sent in the HTTP request, or
303- * the value of a hash key if requested; if the array key does not exist, NULL is returned.
303+ * the value of a hash key if requested. If the array key does not exist, NULL is returned.
304304 *
305305 * @param array|string|null $key The header(s) to return
306306 * @param bool $safeData Attempt to sanitize headers
0 commit comments