Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Collection->toArray() with fromPost #2

Open
mathieuhecker opened this issue Jan 9, 2018 · 1 comment
Open

Bug Collection->toArray() with fromPost #2

mathieuhecker opened this issue Jan 9, 2018 · 1 comment

Comments

@mathieuhecker
Copy link

Hello,

A bug was reveal on toArray method of Collection class.

When the value is a JSON type, characters "[" and "]" read like value delimiters.
Then, all of text before character "[" is key and all of text between "[" and "]" become value for this key.

@gauthier
Copy link
Member

Hi @mathieuhecker,

My guess is that this not quite exactly a bug but rather a side effect. I think you’re trying to fetch unprocessed raw post data when fromPost is based on $_POST value, in turn based on natively processed body of the request.

We’ll manage to let you access the raw body, that you will then need to json_decode, does this seem right to you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants