Skip to content

Fix query string parsing #518

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

Merged
merged 3 commits into from
Feb 16, 2018
Merged

Fix query string parsing #518

merged 3 commits into from
Feb 16, 2018

Conversation

tonymeng
Copy link
Contributor

Fixes #517

const kv = segment.split('=');
if (kv.length === 2) {
results[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1]);
} else {
warn('Invalid query string segment: ' + segment);
warn('Invalid query string segment: "' + segment + '" in query string: "' + queryString + '"');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested:

warn(`Invalid query segment '${segment}' in query '${queryString}'`);

@tonymeng tonymeng merged commit 2e147ff into master Feb 16, 2018
@tonymeng tonymeng deleted the tm-fix-qs-parsing branch February 16, 2018 21:53
@spencexyz
Copy link

Did you guys deploy this on npm?

@firebase firebase locked and limited conversation to collaborators Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[database] FIREBASE WARNING: Invalid query string segment:
4 participants