We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc81427 commit 2e147ffCopy full SHA for 2e147ff
packages/database/src/core/util/libs/parser.ts
@@ -47,11 +47,14 @@ function decodeQuery(queryString: string): { [key: string]: string } {
47
queryString = queryString.substring(1);
48
}
49
for (const segment of queryString.split('&')) {
50
+ if (segment.length === 0) {
51
+ continue;
52
+ }
53
const kv = segment.split('=');
54
if (kv.length === 2) {
55
results[decodeURIComponent(kv[0])] = decodeURIComponent(kv[1]);
56
} else {
- warn('Invalid query string segment: ' + segment);
57
+ warn(`Invalid query segment '${segment}' in query '${queryString}'`);
58
59
60
return results;
0 commit comments