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 a crash in the GenerateName for SearchForTextArgs #16054

Merged
merged 1 commit into from Oct 3, 2023

Conversation

zadjii-msft
Copy link
Member

Fixes MSFT:46725264

don't explode trying to parse a URL, if the string wasn't one.

@zadjii-msft zadjii-msft added this to To Cherry Pick in 1.19 Servicing Pipeline via automation Sep 28, 2023
fmt::format(std::wstring_view(RS_(L"SearchForTextCommandKey")),
Windows::Foundation::Uri(QueryUrl()).Domain().c_str())
};
if (QueryUrl().empty())
Copy link
Member

Choose a reason for hiding this comment

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

I'm confused… Isn't this supposed to be if (QueryUrl())?
(If it is: You can use if (const auto queryUrl = QueryUrl()) here.)

Copy link
Member Author

Choose a reason for hiding this comment

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

nah cause like, the first branch is for "the user didn't provide a queryUrl, so let's just display this action with the default name".

@DHowett DHowett merged commit 59aaba7 into main Oct 3, 2023
17 checks passed
@DHowett DHowett deleted the dev/migrie/b/the-searchweb-generatename-crach branch October 3, 2023 20:31
@DHowett DHowett moved this from To Cherry Pick to Cherry Picked in 1.19 Servicing Pipeline Oct 3, 2023
DHowett pushed a commit that referenced this pull request Oct 3, 2023
Fixes MSFT:46725264

don't explode trying to parse a URL, if the string wasn't one.

(cherry picked from commit 59aaba7)
Service-Card-Id: 90687770
Service-Version: 1.19
@DHowett DHowett moved this from Cherry Picked to Shipped in 1.19 Servicing Pipeline Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants