diff --git a/router/src/components/form.rs b/router/src/components/form.rs index eaf094b4b..7d39062df 100644 --- a/router/src/components/form.rs +++ b/router/src/components/form.rs @@ -692,6 +692,6 @@ where web_sys::UrlSearchParams::new_with_str_sequence_sequence(form_data) .unwrap_throw(); let data = data.to_string().as_string().unwrap_or_default(); - serde_qs::from_str::(&data) + serde_qs::Config::new(5, false).deserialize_str::(&data) } } diff --git a/server_fn/src/lib.rs b/server_fn/src/lib.rs index 1efc5e0ff..841a9d219 100644 --- a/server_fn/src/lib.rs +++ b/server_fn/src/lib.rs @@ -375,7 +375,8 @@ where // decode the args let value = match Self::encoding() { Encoding::Url | Encoding::GetJSON | Encoding::GetCBOR => { - serde_qs::from_bytes(data) + serde_qs::Config::new(5, false) + .deserialize_bytes(data) .map_err(|e| ServerFnError::Deserialization(e.to_string())) } Encoding::Cbor => ciborium::de::from_reader(data)