Skip to content

Commit

Permalink
Escape parsed values from URL Scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
melonamin committed Feb 5, 2022
1 parent 7c517e0 commit 5b85986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftBar/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, SPUStandardUserDriverDelegat
}
case "notify":
guard let pluginID = url.queryParameters?["plugin"] else { return }
let paramsString = url.queryParameters?.map { "\($0.key)=\($0.value)" }.joined(separator: " ") ?? ""
let paramsString = url.queryParameters?.map { "\($0.key)=\($0.value.escaped())" }.joined(separator: " ") ?? ""
pluginManager.showNotification(pluginID: pluginID,
title: url.queryParameters?["title"],
subtitle: url.queryParameters?["subtitle"],
Expand Down

0 comments on commit 5b85986

Please sign in to comment.