php-serialize icon indicating copy to clipboard operation
php-serialize copied to clipboard

Cannot read property 'name' of undefined

Open franciscolourenco opened this issue 3 years ago • 4 comments

Node querystring.parse method returns an object with null prototype for security reasons.

Passing that object to serialize() throws Cannot read property 'name' of undefined.

Would it be possible to stop depending on the object's prototype in order to fix this issue?

Thanks!

Related:

  • https://github.com/nodejs/node/pull/6055

franciscolourenco avatar Oct 13 '20 17:10 franciscolourenco