mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #1541] Query Parameters Incorrectly Appended to URL. #489
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#489
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JayceDugan on GitHub (Mar 16, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1541
Describe the bug
Query parameters when added to a request are appended without trimming white space and are not URL encoded.
To Reproduce
Steps to reproduce the behaviour:
GETrequest.Querywith white space or a space between two words.e.g:
Parameter:
Lorem IpsumValue:
Dolor AmetExpected behaviour
Query parameters should be URL encoded, resulting in white space being trimmed & special characters being replaced with the relevant UTF8 encoding of the relevant character.
The space character is excluded because significant spaces may disappear and insignificant spaces may be introduced when URI are transcribed or typeset or subjected to the treatment of word- processing programs. Whitespace is also used to delimit URI in many contexts.
From RFC 2936, section 2.4.3:
Screenshots
N/A
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURI
https://www.ietf.org/rfc/rfc2396.txt