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

[Fix] Update sanitize_shop_domain to handle nil host #1852

Merged
merged 3 commits into from
May 24, 2024

Conversation

lizkenyon
Copy link
Contributor

What this PR does

  • When javascript:alert(1) is used the host is nil not empty
  • This was causing the code to crash in unified_admin where we would attempt to split uri.host

Checklist

Before submitting the PR, please consider if any of the following are needed:

  • Update CHANGELOG.md if the changes would impact users

When javascript is used the host is nil not empty

This was causing the code to crash in unified_admin where we would attempt to split uri.host

Add a quick return in this scenario to resolve
@lizkenyon lizkenyon requested a review from a team as a code owner May 24, 2024 02:12
@lizkenyon lizkenyon merged commit 34f71ab into main May 24, 2024
7 checks passed
@lizkenyon lizkenyon deleted the liz/sanitize-domain branch May 24, 2024 14:07
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.

2 participants