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

Update BSK to fix percent encoding query parameters #475

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

ayoy
Copy link
Collaborator

@ayoy ayoy commented Mar 18, 2022

Task/Issue URL: https://app.asana.com/0/1177771139624306/1201985700849146/f
Tech Design URL:
CC: @tomasstrba

Description:
When adding a new query parameter to an existing URL, manually percent encode the name and value and add them to percentEncodedQueryItems. When percent-encoding the parameter, use a modified allowed characters set that does not include "URI query reserved characters" as they need to be percent encoded (when part of the parameter name or value).

Steps to test this PR:

  1. Search for star;trek (using search bar)
  2. Verify that the search is performed for star;trek and not for star.
  3. Submit feedback containing a semicolon in the notes.
  4. Verify on the macOS feedback board that the feedback notes are not truncated at the semicolon.

Testing checklist:

  • Test with Release configuration

Internal references:

Software Engineering Expectations
Technical Design Template
When ready for review, remember to post the PR in MM

@tomasstrba
Copy link
Contributor

@mallexxx, FYI, I assigned this to you since you picked duckduckgo/BrowserServicesKit#78 (comment)

@ayoy ayoy force-pushed the dominik/fix-query-percent-encoding branch 2 times, most recently from a3d3cc4 to c1bad6b Compare March 21, 2022 19:17
Copy link
Collaborator

@mallexxx mallexxx left a comment

Choose a reason for hiding this comment

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

LGTM!

@mallexxx mallexxx assigned ayoy and unassigned mallexxx Mar 22, 2022
@ayoy ayoy force-pushed the dominik/fix-query-percent-encoding branch from c1bad6b to 6c51e5b Compare March 22, 2022 09:22
@ayoy ayoy merged commit 0e36a57 into develop Mar 22, 2022
@ayoy ayoy deleted the dominik/fix-query-percent-encoding branch March 22, 2022 10:00
samsymons added a commit that referenced this pull request Mar 25, 2022
# By Tomas Strba (3) and others
# Via GitHub
* develop:
  Testing Checklist Updates (#480)
  Xcode Clean Up (#479)
  External App Scheme permission (#419)
  Update dashboard to correct version (#477)
  Update BSK to fix percent encoding query parameters (#475)
  bump version 0.21.0
  add alternate for paste and match with style (#474)
  First reponder issues when switching tabs (#464)
  Pre-beta copy updates (#472)
  Improvements to data clearing (#467)
  Open feedback form upon tapping "Send Feedback" in the About page (#473)
  new tab tweaks (#471)

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
#	DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	DuckDuckGo/Secure Vault/View/SaveIdentityPopover.swift
#	DuckDuckGo/Secure Vault/View/SaveIdentityViewController.swift
#	DuckDuckGo/Secure Vault/View/SavePaymentMethodPopover.swift
#	DuckDuckGo/Secure Vault/View/SavePaymentMethodViewController.swift
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

Successfully merging this pull request may close these issues.

3 participants