Skip to content

Commit 386ac97

Browse files
committed
[WebSearch] sanitize ContextData
1 parent 4fbd74a commit 386ac97

File tree

1 file changed

+1
-0
lines changed
  • Plugins/Flow.Launcher.Plugin.WebSearch

1 file changed

+1
-0
lines changed

Plugins/Flow.Launcher.Plugin.WebSearch/Main.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ private async Task<IEnumerable<Result>> SuggestionsAsync(string keyword, string
148148

149149
public List<Result> LoadContextMenus(Result selected)
150150
{
151+
if (selected?.ContextData == null || selected.ContextData is not string) return new List<Result>();
151152
return new List<Result>() {
152153
new Result
153154
{

0 commit comments

Comments
 (0)