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

[deep link] Ignore invalid aasa paths (path is null or empty, but has a queryParams) #8339

Merged
merged 3 commits into from
Sep 27, 2024

Conversation

hannah-hyj
Copy link
Member

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

List which issues are fixed by this PR.

Please add a note to packages/devtools_app/release_notes/NEXT_RELEASE_NOTES.md if your change requires release notes. Otherwise, add the 'release-notes-not-required' label to the PR.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read the Flutter Style Guide recently, and have followed its advice.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or there is a reason for not adding tests.

build.yaml badge

If you need help, consider asking for help on Discord.

@hannah-hyj hannah-hyj requested a review from a team as a code owner September 23, 2024 21:55
@hannah-hyj hannah-hyj requested review from elliette and kenzieschmoll and removed request for a team and elliette September 23, 2024 21:55
@hannah-hyj hannah-hyj changed the title [deep link] Ignore invalid aasa paths (path is null, but has a queryParams) [deep link] Ignore invalid aasa paths (path is null or empty, but has a queryParams) Sep 23, 2024
@@ -209,6 +209,10 @@ class DeepLinksService {
?.cast<Map<String, Object?>>();
if (aasaPaths != null) {
for (final aasaPath in aasaPaths) {
final path = aasaPath[_pathKey] as String?;
if (path?.isEmpty ?? true) {
Copy link
Member

Choose a reason for hiding this comment

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

use the isNullOrEmpty helper instead

@hannah-hyj hannah-hyj merged commit b29a37e into flutter:master Sep 27, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants